System and method for simulating paint brush strokes using configurable wetness, drying, and mixing parameters

ABSTRACT

Systems, methods, and apparatus for simulating natural media painting in a digital painting application (or painting simulation module) may more accurately simulate real world painting techniques than conventional painting simulation applications. The digital painting application (or simulation module) may provide a small set of physically meaningful parameters (e.g., canvas wetness, drying rate, and pickup mix ratio). By setting the values of these parameters (or overriding default values for a selected paint type), the user may better control the appearance of brush strokes made by a virtual paint brush on a digital canvas. For example, the length of a brush stroke, the amount of streaking caused by paint picked up during the brush stroke, and/or the mix of paint deposited from a pickup buffer and a reservoir buffer of a brush model may be affected by changing the values of these parameters, thus allowing users to create different realistic painting effects.

PRIORITY INFORMATION

This application claims benefit of priority of U.S. ProvisionalApplication Ser. No. 61/247,366 entitled “Methods and Apparatus forSimulating Natural Media Painting in Digital Media” filed Sep. 30, 2009,the content of which is incorporated by reference herein in itsentirety.

BACKGROUND Description of the Related Art

One component of the simulation of real natural media paint is themethod by which paint moves between the brush and the canvas. There area number of highly visible effects that depend on this interaction, andin order to provide a high-fidelity recreation of real paint strokes,this interaction should be accurately reproduced. Real natural paintmedia with thick paints such as oil paints, acrylics, gouache, etc.,exhibit a variety of different behaviors that are important aspects ofhow painters achieve their results. Many of these behaviors come fromthe fact that paint deposition by a brush on a canvas is not a one-waytransfer—that is, paint is moving from the brush to the canvas and fromthe canvas to the brush at the same time. This results in the dirtyingof strokes as a brush passes through wet paint on the canvas. However,this allows painters to create smooth transitions between colors bygradually mixing two or more colors of paint with via pickup anddeposition of small amounts of paint back and forth. Another effect ofreal natural media painting is the drying out of the paint on the brushduring a stroke, which may result in streaky marks.

Baxter describes an oil paint simulation technique in his PhD thesis(William Valentine Baxter III. Physically-based Modeling Techniques forInteractive Digital Painting. PhD thesis, University of North Carolina,2004). In this technique, paint on a brush is modeled using two layers,a reservoir and a surface layer. Baxter's model dictates that paintflows between the surface and the canvas, and from the reservoir to thesurface (as illustrated in FIG. 1). By this method, the surface couldbecome dirty from the canvas, but could also be replenished by thereservoir, which could eventually run out of paint to cause dry strokes.However, a limitation of Baxter's technique is that paint moves betweenthe layers with a constant flow rate. In other words, using Baxter'stechnique, the picked up paint always makes the same length of dirtystroke, regardless of how much paint is actually picked up. For example,if a small amount of red paint is picked up by a white paint loadedbrush, the brush makes a reddish streak of some length, whereas if amuch larger amount of red paint is picked up, the brush makes the samelength of reddish streak.

When a physical paint brush is used to paint on canvas, the length ofstroke is determined by how quickly the paint on the brush dries (e.g.,by being deposited on the canvas). If there is paint already on thecanvas, the extent to which the paint on the canvas mixes with the painton the brush is determined by how wet the paint on the canvas is and howwet the paint on the brush is. Conventional painting simulation toolsattempt to reproduce some of these effects by ad-hoc methods such asarbitrarily modulating the opacity of the deposited paint eitherspatially or temporally. However, these conventional painting simulationtools typically do not mix or blend the colors on the canvas with thecolors in the brush. In addition, conventional painting simulation toolsdo not provide intuitive methods to control the manner in which thecolors are mixed or the length of stroke that can be made.

Physical paint brushes have paint loaded onto them as the painter pushesand rotates the brush either onto a canvas or onto a color palette. Asthe paint on the canvas is often not all the same color, the physicalpaint brush may have paint of different colors loaded non-uniformlyamong and along each of the bristles. To replicate this physicalworkflow digitally, a painting simulation tool should provide:

-   -   the ability to specify non-uniform colors across a static tip;    -   the ability to specify non-uniform colors across the various        bristles on a physically-based bristle brush; and    -   the ability to specify non-uniform colors along a bristle on a        physically-based bristle brush.

These requirements add complexity to the workflow of a digital brush andmake unclear the requirements of an ideal user interface mechanism thatwould both allow the organic experience of using a real paint brush andprovide the flexibility of a digital paint brush. Conventional userinterface (UI) methods in painting simulation tools may allow a user tospecify a single color for a brush, or to specify a gradient or rampalong the length of a bristle. Some of these conventional methods mayalso allow the user to specify color for each bristle separately.However, in conventional painting simulation tools, these options tendto be difficult to use, non-intuitive to the user, and counter to theorganic feeling of painting. Furthermore, these conventional methods arenot consistent when trying to load a static-tipped virtual brush ascompared to a physically-based bristle brush, leading to user confusion.

A real media (physical) paint brush has many complex behaviors. Forexample, during painting, the brush will run out of paint and will getdirty. These behaviors are important for creating realistic painteffects, but in many cases, these behaviors are annoyances that must beworked around. Common natural media painting tasks include painting“fresh” strokes (e.g., painting with a full, clean load of paint),painting dirty strokes, and blending colors with a clean brush. Each ofthese workflows requires managing the paint loaded on the brush betweenconsecutive strokes. To paint fresh strokes, the brush must be cleaned(dipped in turpentine or water) and reloaded with paint from the palettebetween each pair of brush strokes. To paint dirty strokes, the brushmust be reloaded with paint from the palette (but not cleaned, so theload is inhomogeneous) between brush strokes. To blend colors with aclean brush, the brush must be cleaned between brush strokes to removethe accumulation of picked up paint.

Painters using conventional, natural paint may develop techniques forcleaning and loading physical paint brushes quickly and without losingfocus on their artwork, but these reflexive actions take years todevelop. Conventional digital painting applications may focus onproviding specific tools that each model a specific behavior a paintermay want, such as a “blending colors” tool and a “clean paint” tool.However, conventional digital painting applications generally model onlyreal painting tools, and require users to manually reproduce the actionsa real painter may perform to achieve the desired effects. Conventionaldigital painting applications may create individual tools to reproduceeach specific type of painting effect a user may want, which may resultin a myriad of tools, each of which must be learned and managed in turn.Most users only make use of a small percentage of the available tools inthese conventional digital painting applications, and thus may belimited in the types of effects that they are able to create.

Conventional painting simulation engines may focus on reproducing theexperience of real natural media painting, and may provide a very smallnumber of tools (generally just a virtual paint brush) and focus onenabling many effects with that single tool. However, this approach mayrequire the user to perform a significant amount of manual work forcommon painting tasks, just as with real natural media painting. Thiscreates a serious usability obstacle for novice users.

SUMMARY

Various embodiments of systems, methods, and apparatus for simulatingnatural media painting in a digital painting application (or simulationmodule thereof) are described. The methods described herein may be moreintuitive for the artist, and also more easily learned by the novice,than techniques implemented in conventional painting simulation engines.These methods may allow the user to more accurately simulate real worldpainting techniques than the models employed in conventional paintingsimulation applications.

In some embodiments, the digital painting application (or paintingsimulation module) may employ a two-layer model of a virtual paintbrush.The two-layer brush model may include a reservoir buffer and a pickupbuffer to separately represent the paint stored in the belly of a paintbrush tip and paint that has been picked up on the surface of the brushtip during a brush stoke, respectively. Each element in the reservoirbuffer and the pickup buffer may store data indicating a paint color, anamount of paint, and/or other properties of the paint stored in arespective portion of the virtual brush. The two-layer brush model mayalso include methods that automatically control how virtual paint movesbetween these layers and a digital canvas in response to receiving inputdefining a brush stroke made by a virtual brush. The two-layer model andpaint moving methods, which may be referred to collectively as a paintload model, may enable a more accurate reproduction of realistic brushstrokes in painting simulation than is provided by conventional methods.

In some embodiments of the paint load model, paint does not flow fromthe reservoir to the pickup, as in conventional methods. Instead, insimulations that employ the two-layer brush model described herein,virtual paint may be deposited on the digital canvas directly fromeither or both of the buffers. This may allow the simulation to morerealistically mimic the behavior of a physical paint brush stroke, suchas when a physical paint brush picks up paint when it passes over acanvas on which at least some of the paint is still wet.

In some embodiments, paint picked up by the virtual brush during a brushstroke may be streaked over the canvas during the brush stroke or duringa subsequent brush stroke, and may be mixed with paint already in thepickup buffer when added to the pickup buffer. In some embodiments, thedigital painting application (or simulation module) described herein maycompute the resulting color and amount of paint stored in an image pixelon a digital canvas that is affected by a brush stroke by mixing virtualpaint from both the pickup buffer and the reservoir buffer to computethe color and amount of virtual paint to be deposited by the virtualbrush during the brush stroke and/or by mixing virtual paint to bedeposited by the virtual brush during the brush stroke with virtualpaint that was previously deposited on the digital canvas.

In some embodiments, the digital painting application (or simulationmodule) may provide a relatively small and physically meaningful set ofparameters to control the behavior of various brush strokes. Forexample, in some embodiments, the digital painting application (orsimulation module) may provide a canvas wetness parameter, a drying rateparameter, and/or a pickup mix ratio for a virtual brush. In response toreceiving input defining a brush stroke made on a digital canvas by thevirtual brush, the digital painting application may apply a brush strokewhose effects are dependent on the values of one or more of theseparameters. In some embodiments, one or more of the parameter values maybe a default value for a given paint type. In some embodiments, thevalue of one or more of the parameters may be configurable by a user.

In some embodiments, the value of the drying rate parameter may be setor adjusted in order to affect the length of one or more brush strokesapplied to a digital canvas using the virtual brush. For example, ashorter brush stroke may be produced when the drying rate value is highthan when the drying rate value is low.

In some embodiments, the value of a canvas wetness parameter may be setor adjusted to affect the amount of paint that is picked up from thecanvas by one or more brush strokes and eventually mixed with paint onthe brush and/or streaked on the canvas. For example, if the canvaswetness parameter value is low, relatively little paint may be picked upfrom the canvas, resulting in a small amount of streaking If the canvaswetness parameter value is higher, more paint may be picked up from thecanvas, resulting in a larger streak than one made when the canvaswetness parameter is low.

In some embodiments, the value of a pickup mix ratio parameter may beset or adjusted to affect the extent to which paint picked up from thecanvas by the brush during a brush stroke is mixed with other paint onthe brush when being re-deposited on the canvas during the brush stroke.For example, assuming a high canvas wetness value, if the pickup mixratio value is high, the brush stroke may primarily streak the picked uppaint from the canvas. If the pickup mix ratio value is low, the coloron the brush may be blended with the paint picked up from the canvaspaint; and then the blended paint may be streaked on the canvas.

In embodiments in which a virtual brush is modeled using a brush modelthat includes a reservoir buffer and a pickup buffer, more paint fromthe reservoir buffer may be forcibly mixed with the virtual paint pickedup from the digital canvas when the pickup mix ratio value is high thanwhen the pickup mix ratio value is low. In embodiments in which avirtual brush is modeled using a bristle brush model, data for two ormore bristles of the bristle brush model may indicate values of one ormore of the drying rate parameter, the canvas wetness parameter, and thepickup mix ratio that are different.

In some embodiments, the digital painting application (or simulationmodule) may allow the user to load a brush with non-uniform colors bydirectly sampling the digital canvas on which they are painting. In somesuch embodiments, the reservoir buffer may be loaded with the selectedcolor(s) according to the non-uniform distribution of colors in thesampled portion of the digital canvas.

In some embodiments, the digital painting application (or simulationmodule) may provide an automatic brush cleaning feature and an automaticbrush filling feature, which may be separately selectable by a user.When enabled, these features may cause the digital painting application(or simulation module) to automatically clean the virtual brush (e.g.,by emptying both the reservoir buffer and the pickup buffer) and/orautomatically fill the virtual brush with paint (e.g., by storing datarepresenting paint in the reservoir buffer) between brush strokes.

Various embodiments of the digital painting applications and/or paintingsimulation modules described herein may implement one or more of theabove methods, parameters, options, or features. Moreover, a givenpainting operation using the digital painting applications and/orpainting simulation modules described herein may employ two or more ofthe above methods, parameters, options, or features, in variouscombinations, to achieve a variety of painting simulation effects and toprovide various painting simulation functionalities.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a prior art oil painting simulation technique inwhich paint on a brush is modeled using two layers.

FIG. 2 illustrates one embodiment of a painting simulation techniquethat uses a reservoir buffer and a pickup buffer to model paint on abrush, and in which cells in both buffers correspond to a particularcell on the brush.

FIG. 3 illustrates one embodiment of a painting simulation techniquethat uses a reservoir buffer and a pickup buffer to model paint on abrush, and in which both buffers directly deposit paint on to thecanvas.

FIG. 4 is a flow diagram illustrating one embodiment of a method forsimulating a paint brush stroke using a brush model that includes areservoir buffer and a pickup buffer.

FIG. 5A is a flow diagram illustrating one embodiment of a method forsimulating the flow of paint in a brush model that includes a reservoirbuffer and a pickup buffer.

FIG. 5B is a flow diagram illustrating one embodiment of a method forloading paint into a pickup buffer.

FIG. 5C is a flow diagram illustrating one embodiment of a method forcomputing the color and amount of paint to be deposited from each of areservoir buffer and a pickup buffer.

FIG. 6 is a flow diagram illustrating one embodiment of a digitalpainting workflow in a system that models paint on a brush using areservoir buffer and a pickup buffer.

FIG. 7 is a flow diagram illustrating one embodiment of a method forapplying one or more physically realistic natural media paintingparameters in a painting simulation module.

FIG. 8A is a flow diagram illustrating one embodiment of a method forapplying a drying rate parameter value in a painting simulation module.

FIG. 8B is a flow diagram illustrating one embodiment of a method forapplying a canvas wetness parameter value in a painting simulationmodule.

FIG. 8C is a flow diagram illustrating one embodiment of a method forapplying a pickup mix ratio value in a painting simulation module.

FIG. 9 illustrates one embodiment of a user interface that includesslider bars for setting and adjusting the values of a drying rateparameter, a canvas wetness parameter, and pickup mix ratio for strokesdrawn on a digital canvas using a virtual paint brush.

FIG. 10 illustrates changes to the length of a brush stroke as the valueof a drying rate parameter is changed, according to some embodiments.

FIG. 11 illustrates changes to a brush stroke as the value of a canvaswetness parameter is increased, according to some embodiments.

FIG. 12 illustrates changes to a brush stroke as the value of a pickupmix ratio is decreased, according to some embodiments.

FIG. 13 is a flow diagram illustrating one embodiment of a digitalpainting workflow using a painting simulation module that applies one ormore physically realistic natural media painting parameters.

FIG. 14 is a flow diagram illustrating one embodiment of a method forloading a digital paint brush with non-uniform colors from a digitalcanvas.

FIG. 15 illustrates one embodiment of a user interface through which adigital brush is loaded with non-uniform colors by directly sampling aportion of a digital image.

FIG. 16 is a flow diagram illustrating one embodiment of a method forloading paint from a canvas region under a brush tool using asingle-fill, non-uniform paint loading mode.

FIG. 17 is a flow diagram illustrating one embodiment of a method forloading paint from a canvas region under a brush tool using acontinuous-fill, non-uniform paint loading mode.

FIG. 18A illustrates the application of a non-uniform paint distributionin a system that employs a 2D stamp-based brush model, according to oneembodiment.

FIG. 18B illustrates the application of a non-uniform paint distributionin a system that employs a bristle brush model, according to oneembodiment.

FIG. 19 is a flow diagram illustrating one embodiment of a method forsimulating natural media brush strokes in a digital painting applicationthat provides an automatic brush cleaning feature and an automatic brushfilling feature.

FIGS. 20A through 20C illustrate the application of brush strokes in anatural media painting simulation in which both an automatic brushcleaning feature and an automatic brush filling feature are off(disabled), according to some embodiments.

FIGS. 21A through 21C illustrate the application of brush strokes in anatural media painting simulation in which an automatic brush cleaningfeature is on (enabled) and an automatic brush filling feature is off(disabled), according to some embodiments.

FIGS. 22A through 22C illustrate the application of brush strokes in anatural media painting simulation in which an automatic brush cleaningfeature is off (disabled) and an automatic brush filling feature is on(enabled), according to some embodiments.

FIGS. 23A through 23B illustrate the application of brush strokes in anatural media painting simulation in which both an automatic brushcleaning feature and an automatic brush filling feature are on(enabled), according to some embodiments.

FIG. 24 is a flow diagram illustrating one embodiment of a method forsimulating natural media brush strokes in a digital painting applicationusing different combinations of an automatic brush cleaning feature andan automatic brush filling feature.

FIG. 25 illustrates a painting simulation module that may implement oneor more of the painting simulation methods described herein, accordingto some embodiments.

FIG. 26 illustrates one embodiment of a computer system that isconfigured to implement one or more of the painting simulation methodsdescribed herein, according to some embodiments.

While various embodiments are described herein by way of example forseveral embodiments and illustrative drawings, those skilled in the artwill recognize that embodiments are not limited to the embodiments ordrawings described. It should be understood, that the drawings anddetailed description thereto are not intended to limit the embodimentsto the particular form disclosed, but on the contrary, the intention isto cover all modifications, equivalents and alternatives falling withinthe spirit and scope of the disclosure. The headings used herein are fororganizational purposes only and are not meant to be used to limit thescope of the description. As used throughout this application, the word“may” is used in a permissive sense (i.e., meaning having the potentialto), rather than the mandatory sense (i.e., meaning must). Similarly,the words “include”, “including”, and “includes” mean including, but notlimited to.

DETAILED DESCRIPTION OF EMBODIMENTS

In the following detailed description, numerous specific details are setforth to provide a thorough understanding of claimed subject matter.However, it will be understood by those skilled in the art that claimedsubject matter may be practiced without these specific details. In otherinstances, methods, apparatuses or systems that would be known by one ofordinary skill have not been described in detail so as not to obscureclaimed subject matter.

Some portions of the detailed description which follow are presented interms of algorithms or symbolic representations of operations on binarydigital signals stored within a memory of a specific apparatus orspecial purpose computing device or platform. In the context of thisparticular specification, the term specific apparatus or the likeincludes a general purpose computer once it is programmed to performparticular functions pursuant to instructions from program software.Algorithmic descriptions or symbolic representations are examples oftechniques used by those of ordinary skill in the signal processing orrelated arts to convey the substance of their work to others skilled inthe art. An algorithm is here, and is generally, considered to be aself-consistent sequence of operations or similar signal processingleading to a desired result. In this context, operations or processinginvolve physical manipulation of physical quantities. Typically,although not necessarily, such quantities may take the form ofelectrical or magnetic signals capable of being stored, transferred,combined, compared or otherwise manipulated. It has proven convenient attimes, principally for reasons of common usage, to refer to such signalsas bits, data, values, elements, symbols, characters, terms, numbers,numerals or the like. It should be understood, however, that all ofthese or similar terms are to be associated with appropriate physicalquantities and are merely convenient labels. Unless specifically statedotherwise, as apparent from the following discussion, it is appreciatedthat throughout this specification discussions utilizing terms such as“processing,” “computing,” “calculating,” “determining” or the likerefer to actions or processes of a specific apparatus, such as a specialpurpose computer or a similar special purpose electronic computingdevice. In the context of this specification, therefore, a specialpurpose computer or a similar special purpose electronic computingdevice is capable of manipulating or transforming signals, typicallyrepresented as physical electronic or magnetic quantities withinmemories, registers, or other information storage devices, transmissiondevices, or display devices of the special purpose computer or similarspecial purpose electronic computing device.

Various embodiments of systems, methods, and apparatus for simulatingnatural media painting in digital media are described herein. In someembodiments, the methods described herein may more accurately and/orrealistically simulate real (i.e. physical) painting techniques thanconventional painting simulation engines. These methods may be moreintuitive for the artist, and also more easily learned by the novice,than techniques implemented in conventional painting simulation engines.One or more of the methods described herein may be implemented, forexample, in a stand-alone painting simulation application (such as anatural media painting simulation application) or in a paintingsimulation module of a digital painting application or another type ofgraphics application. For example, a painting simulation module ordigital painting application may present a user interface for receivinginput from a user specifying values of one or more parameters to beapplied in a digital painting operation, one or more paint loading orpaint deposition modes, and/or one or more digital painting operations,may model paint loaded on a virtual brush using both a reservoir bufferand a pickup buffer, may deposit paint onto a digital canvas directlyfrom the reservoir buffer and/or the pickup buffer, may provide amechanism by which a non-uniform distribution of paint can be loadedonto a virtual brush, and/or may provide automatic brush cleaning and/orautomatic brush filling to simplify some digital painting workflows, invarious embodiments. One such painting simulation module is illustratedin FIG. 25 and described in detail below. An example system on whichvarious embodiments of a painting simulation module and/or one or moreof the methods described herein may be implemented and executed isillustrated in FIG. 26 and described in detail below.

As previously noted, one component of a simulation of real natural mediapaint is the method by which paint moving between the brush and thecanvas is modeled. Some embodiments of the painting simulationapplications described herein may implement a two-layer brush model thatseparately stores data representing the paint stored in the belly of abrush tip, and the paint that has been picked up on its surface, using areservoir buffer and a pickup buffer. In such embodiments, the paintingsimulation application may include methods that automatically controlhow paint moves between these layers and the canvas, and this behaviormay be dependent on the values of one or more configurable parameters.The two-layer brush model and corresponding paint deposition method,which may be referred to collectively as a paint load model, may enablea more accurate reproduction of realistic brush strokes in paintingsimulations than that provided by conventional methods. In someembodiments of the paint load model, paint may be directly deposited ona canvas from both the pickup layer and the reservoir layer, asdescribed in more detail below.

Note that, as used herein, the term “brush stroke” (or simply “stroke”)may refer to an action of a physical paint brush or a corresponding markmade by an action of a physical paint brush, or may refer to an actionof virtual brush or a corresponding mark made on a digital canvas by anaction of a virtual brush. In various embodiments, a virtual brushstroke may be defined by manipulation of an input/output device (such asa cursor control device, including a mouse, a touch pad, a button, astylus on a tablet, a track ball, or another suitable input/outputdevice). For example, a virtual brush stroke may be defined in terms ofthe actions taken from “mouse down” to “mouse up”, or from the “click”of a cursor control mechanism to the “release” of that mechanism, indifferent embodiments. Note also that, as used herein, the term “virtualpaint” may refer to a digital representation of physical paint in adigital painting application or painting simulation module, and thisdigital representation of physical paint may alternatively be referredto simply as “paint” in the context of such a digital paintingapplication or painting simulation module. Similarly, the terms “virtualbrush” and “brush” may both be used to refer to a digital representationof a physical paint brush in a digital painting application or paintingsimulation module.

In some embodiments that include the two-layer paint load modeldescribed herein, the rate at which paint is deposited from the pickupbuffer may be different from the rate at which paint is deposited fromthe reservoir buffer. In some embodiments, the ratio of paint depositedfrom each of the buffers may be dependent on the values of one or moreconfigurable parameters, as described herein. As used herein the term“brush flow rate” may refer to the rate at which paint is deposited on adigital canvas by a virtual brush, whether that paint includes paintfrom the pickup buffer, the reservoir buffer, or a mix of the two. Theterm “pickup flow rate” may refer to the rate at which paint is pickedup from a digital canvas by a virtual brush during the application of abrush stroke. The brush flow rate may be used in the painting simulationapplication in determining how much paint is deposited over time and/orspace by a given brush stroke, and may also influence how long a brushstroke can be, how long the paint in the brush lasts, how long smearsmade by picked up paint can be, etc. In different embodiments, thevalues of the brush flow rate and/or the pickup flow rate may beconfigurable by a user, may be pre-defined for a particular paint orpaint type, or may be a default value (which it may be possible tooverride). As when a brush stroke is painted with a real (physical)paint brush, when a brush stroke is applied to a digital canvas, paintmay be picked up from the canvas and mixed with paint loaded on thevirtual brush (e.g., in the reservoir buffer) and/or other paintpreviously picked up by the virtual brush (e.g., in the pickup buffer),and this mixture of paint may be subsequently deposited on the canvaswhere it is further mixed with paint already present on the canvas.

Using a previous painting simulation technique in which paint flowsbetween a surface layer and the canvas, and from a reservoir layer tothe surface layer, if 10 units of white paint are stored in the surfacelayer and the brush passes over an area of red paint, picking up oneunit of red paint, the paint subsequently deposited by the brush mayappear as a light pink color for the rest of the stroke. In other words,the color of each of the 10 units of paint on the brush may be modifiedso that it is 1 part red and 10 parts white. However, a more realisticresult, which may be provided by a system in which the paint stored in abrush is modeled using a pickup buffer and a reservoir buffer, asdescribed herein, may be that a small amount of red paint (or paint thatis predominantly red) is smeared out over the canvas for a shortdistance after it is picked up, and then white paint (or paint that ispredominantly white) is deposited for the rest of the brush stroke. Insuch a system, a small amount of red paint picked up by the brush duringthe stroke may be stored separately (e.g., in a pickup buffer) from thelarge amount of white paint (e.g., in a reservoir buffer), and paintfrom the two buffers may be deposited during the remainder of the strokeat the same or different flow rates, thus depleting the two buffers atthe same or different rates. If the brush picked up a larger amount ofred paint, the system described herein may produce a brush stroke inwhich red paint is smeared over a larger distance before the paintdeposited by the brush returns to a white color.

As illustrated in FIGS. 2 and 3, in some embodiments the paint loadstate of a brush tip (e.g., the amount, type, and/or color of paint onthe brush tip at a given point in time) may be represented using twobuffers, which may be referred to as a reservoir buffer and a pickupbuffer. These two buffers may be similarly mapped onto the brush so thateach unit area of the brush tip corresponds to one cell of the reservoirbuffer and one cell of the pickup buffer. FIG. 2 illustrates oneembodiment of a painting simulation technique that uses a reservoirbuffer and a pickup buffer to model paint on a brush, and in which cellsin both buffers correspond to a particular cell on the brush. In thisexample, the paint load state of a portion of brush tip 240 isrepresented by values in buffer column 215 of reservoir buffer 210, andin buffer column 225 of pickup buffer 220. Specifically, each cell ofbrush column 245 is mapped to a respective cell of buffer column 215,and is also mapped to a respective cell of buffer column 225, and thevalues in each cell of buffer column 215 and buffer column 225 reflectthe color and/or other properties of the paint loaded on the portion ofbrush tip 240 represented by the corresponding cells of brush column245.

When paint is deposited on a digital canvas from brush tip 240, thepaint deposited by each portion of brush tip 240 may be deposited fromcorresponding cells in reservoir buffer 210 or pickup buffer 220, or thepaint deposited on the digital canvas may be a mix of paint fromcorresponding cells in both reservoir buffer 210 and pickup buffer 220,as described herein. In various embodiments, brush tip 240 may representa physical paint brush as a simple 2D stamp of pixels (e.g., acollection of pixels forming a circle, rectangle or other shape), a 3Dmesh, 3D bristle strands, or some other representation, and the paintload model described herein may be applied to any of these brush models.In other words, the paint load model described herein may not depend onhaving any particular mapping of the brush model to the reservoir andpickup buffers, as long as some such mapping is defined.

In some embodiments, the pickup and reservoir buffers may be mapped to avirtual brush tip modeled as a set of bristles on a bristle brush inwhich the set of bristles may change shape and orientation over timeduring a stroke. The pickup and reservoir buffers may be associated withthe bristles in the brush tip to create a mapping that is moresophisticated for this bristle brush case than the mapped used with aconventional static brush model (such as a 2D stamp-based brush model).In some embodiments, each bristle in the brush tip may correspond to arespective column in each of the two buffers. The model for each bristlemay include a plurality of cells for holding paint values, and eachcolumn in each of the two buffers (i.e. the pickup buffer and thereservoir buffer) may also include a plurality of cells. Each cell in abristle model may correspond to a particular cell in the respectivecolumn of each of the buffers, and different cells may store painthaving different colors and/or other properties. Thus, there may bevariations in the color and amount of paint stored along a bristleduring a stroke. For example, when the brush is loaded from a palette,the reservoir buffer may be completely filled. As the brush is strokedon the digital canvas, paint may be picked up off the canvas and addedto the pickup buffer, and paint may (at the same time) be deposited fromthe pickup buffer and the reservoir onto the canvas. In embodiments thatemploy a bristle brush model, different cells along a bristle, anddifferent bristles, may come into contact with different portions of thecanvas. Thus, paint is picked up and deposited according to the locationof the cells of the bristles that are in contact with the canvas andaccording to the contents of the buffers in locations corresponding tothe cells of the bristles. This bristle brush configuration may allowpaint to be deposited on the canvas in a natural, streaked manner, asdescribed in more detail below.

As previously noted, the reservoir buffer may store data representingthe volume of paint stored in the belly of the brush tip, which may befilled, for example, when the brush is placed into an ink well or intopaint on a palette. In a digital painting application, this could beconsidered to be the set color of the brush. In this example, each cellof the reservoir buffer may store a single color of paint along with anamount of paint. The amount may represent how much paint is stored atthat location in the reservoir buffer, and therefore, how much paint canbe deposited on the digital canvas from that location. In someembodiments, the data representing the amount of paint is stored inunits of pixels. In other words, a reservoir buffer cell that stores avalue of 500 for the amount of paint may be able to mark 500 pixels onthe digital canvas before it is depleted (empty). Other embodiments mayuse other methods of storing and mapping the amount of paint in thereservoir buffer.

As previously noted, the pickup buffer may store data representing thepaint that the brush has picked up (e.g., wicked up) from the canvasduring the application of a brush stroke. For example, if a clean brushis dragged through wet paint during a brush stroke, wet paint from thecanvas may be picked up by the brush tip and then subsequently depositedat another point in time during the stroke. In some embodiments, thedata stored in the pickup buffer represents this quantity of paint thatis picked up during a stroke. In some embodiments, the pickup bufferstores, per cell, a color and an amount of paint in pre-defined units(e.g., in pixels) similar to data stored in the reservoir buffer anddescribed above. In some embodiments, the pickup buffer may have asmaller capacity than the reservoir buffer, as the volume of the bellyof a brush tip is typically larger than the volume of the surface of abrush tip that picked up paint can occupy. Note that, in someembodiments, the reservoir buffer may be more likely to store paint of asingle (uniform) color and/or paint type in each column and/or alongeach bristle, while the color and/or other properties of the paintstored in the pickup buffer may be more likely to vary among differentbristles and/or along the column of a given bristle, since it may beloaded at different times and from different sources (i.e. differentportions of the digital canvas). In some embodiments, the color and/orother properties of the paint stored in the pickup buffer may varygreatly over the course of a single brush stroke, since the virtualbrush may sweep over paint in different locations on the canvas thathave different colors and/or other properties during the course of thebrush stroke.

In some embodiments of the paint load model described herein, paint doesnot flow from the reservoir to the pickup, as in conventional methods.Instead, both buffers may directly deposit paint on to the canvas. FIG.3 illustrates one embodiment of a painting simulation technique thatuses a reservoir buffer 310 and a pickup buffer 320 to model paint on abrush, and in which both buffers can directly deposit paint on to adigital canvas 330. As illustrated in FIG. 3, paint may also be pickedup from canvas 330, and the picked up paint may be loaded into pickupbuffer 320.

One embodiment of a method for simulating a paint brush stroke using abrush model that includes a reservoir buffer and a pickup buffer isillustrated by the flow diagram in FIG. 4. As illustrated at 410 in thisexample, the method may include a natural media painting simulationapplication receiving input representing a stroke made by a physicalpaint brush. For example, the application may receive such input from abrush tool of a graphical user interface, such as one manipulated byuser via a mouse, trackball, stylus, or other input mechanism torepresent the bristles of a paint brush sweeping over a canvas. In someembodiments, a model of a brush tool (i.e. a brush model) that providesa virtual representation of a paint brush may include both a pickupbuffer and a reservoir buffer, and each of these buffers may store paintthat can be deposited on a digital canvas by a brush stroke. Asillustrated at 420, in response to receiving input representing a brushstroke, the method may include the application applying paint from oneof more of the buffers to canvas pixels affected by the brush stroke(i.e. pixels on the digital canvas over which the brush tool sweeps).The method may also include the application storing data representingthe canvas as modified by the brush stroke, as in 430.

FIGS. 5A-5C illustrate various methods for simulating natural mediapainting in more detail than that illustrated in FIG. 4, according toone embodiment. Note that in some embodiments the operations illustratedin various elements of FIGS. 5A-5C may be performed at each discretetime step of a painting stroke. FIG. 5A is a flow diagram illustratingone embodiment of a method for simulating the flow of paint between thereservoir and pickup buffers and a digital canvas in an application thatmodels brush behavior using both a reservoir buffer and a pickup buffer.As illustrated in this example, the method may include the applicationreceiving input representing a brush stroke on a digital canvas, as in510. The method may include the brush model picking up paint from thecanvas during the brush stroke, as in 520. Operations involved inpicking up paint from the canvas are illustrated in more detail in FIG.5B, and are described below, according to some embodiments.

As previously noted, in some embodiments, the application may supportthe deposition of paint directly from both the reservoir buffer and thepickup buffer. As illustrated in FIG. 5A, the painting simulation methodmay include the application computing the color and amount of paint tobe deposited on the canvas during the brush stroke, as in 530.Operations involved in the computation of the color and amount of paintto be deposited from the pickup buffer and/or the reservoir buffer areillustrated in more detail in FIG. 5C and are described below, accordingto some embodiments. Once the color and amount of paint to be depositedby the brush have been computed, the method may include mixing the paintto be deposited with the paint already on the canvas to produce amodified image on the canvas, as in 540. Note that the paintingsimulation application may use any standard or custom mixing and/orblending techniques when mixing paint from the pickup buffer and thereservoir buffer, or when mixing paint from the brush model and theaffected canvas pixels, including, but not limited to, those describedherein.

As illustrated at 550, after depositing paint on the canvas, the methodmay include the application reducing the amount of paint in thereservoir buffer and the pickup buffer accordingly. For example, theamount of paint in the reservoir buffer may be reduced by the amount ofpaint that was deposited from the reservoir buffer, and the amount ofpaint in the pickup buffer may be reduced by the amount of paint thatwas deposited from the pickup buffer.

As noted above, FIG. 5B illustrates a method for loading paint into apickup buffer, according to some embodiments. In this example, inresponse to receiving input representing a brush stroke (as in 510), themethod may include the application determining the contact area of thebrush tip with the canvas. In some embodiments, only the correspondingcells of the reservoir, pickup, and canvas buffers that are relevant tothe contact area are operated on for the remainder of the method (i.e.only those cells corresponding to canvas cells that are in contact withbrush model cells during a particular discrete time step). Asillustrated at 524, the method may include picking up paint from thecontact area, which may include reducing the amount of paint at thecontact area of the canvas accordingly. In other words, the canvas paintmay be reduced by the amount of paint that was picked up by the brushtip.

As illustrated in this example, if the corresponding cells of the pickupbuffer (i.e. those cells corresponding to portions of the brush that arein contact with the canvas for the particular discrete time step) wereempty prior to the brush stroke (or time step thereof), the method mayinclude storing the color and amount of paint picked up from the canvasin the pickup buffer. This is shown as the positive exit from 526 andelement 528. If the corresponding cells of the pickup buffer were notempty prior to the brush stroke (or time step thereof), the method mayinclude mixing the picked up paint with paint already stored in thecorresponding cells in pickup buffer based on the pickup flow rate, theamount of paint already in the pickup buffer, and the amount of paintthat was on the canvas (and, by extension, the amount of paint pickedup). This is shown as the negative exit from 526 and element 527. Asillustrated in FIG. 5B, the method may include adjusting the color andamount of paint in the pickup buffer as a result of this mixing. Inother words, the pickup buffer data may be adjusted to reflect the factthat additional paint has been mixed with paint previously stored in thepickup buffer, e.g., increasing the total amount of paint stored in thepickup buffer, and changing the color of the paint stored in at leastsome of the cells of the pickup buffer (assuming the color of the pickedup paint is different from the color of paint present in the pickupbuffer).

FIG. 5C is a flow diagram illustrating one embodiment of a method forcomputing the color and amount of paint to be deposited on the canvasfrom each of a reservoir buffer and a pickup buffer. As illustrated inthis example, the color and amount of paint to be deposited by the brushmay be computed based on the brush flow rate, the amount of paint in thepickup buffer, and the amount of paint in the reservoir buffer. Forexample, in some embodiments if a large amount of paint is picked upfrom the canvas, the application may be configured to deplete the pickupbuffer first, mimicking the behavior of a physical paint brush thatpicks up a large amount of paint from a canvas during a brush stroke. Insuch embodiments, the method may include comparing the amount of paintin the pickup buffer to the brush flow rate, as illustrated at 532. Inthis example, if the amount of paint in the pickup buffer is greaterthan or equal to the brush flow rate, shown as the positive exit from534, then method may include depositing paint only from the pickupbuffer, as in 536. On the other hand, if the amount of paint in thepickup buffer is less than the brush flow rate, shown as the negativeexit from 534, the method may include depositing paint from the pickupbuffer until it is depleted (or nearly depleted), as in 537, and thendepositing paint from the reservoir buffer (which may be mixed with thelast of the picked up paint, if any, for a portion of the stroke) forthe remainder of the stroke (i.e. until the total amount paint depositedby the brush stroke is the amount of paint that should be depositedaccording to the brush flow rate), as in 538.

As noted above, in some embodiments, the operations illustrated invarious elements of FIGS. 5A-5C may be repeated for each discrete timestep of a painting stroke. For example, the discrete time step may bedefined as an atomic temporal unit of a stroke; that is, a single strokeof a brush may include multiple discrete time steps, and the color andamount of paint picked up and/or deposited by the brush tool during thestroke may be determined, computed, and/or applied for a set of canvaspixels that are in contact with the brush tool at each time step.

FIG. 6 is a flow diagram illustrating one embodiment of a digitalpainting workflow in a system that models paint on a brush using both areservoir buffer and a pickup buffer. As illustrated at 610, the methodmay include a natural media painting simulation application receivinginput indicating a particular brush flow rate for one or more brushstrokes. For example, the application may obtain a default brush flowrate stored in memory for the application, or may receive inputspecifying a brush flow rate from a user through a graphical userinterface (e.g., using a slider bar or another input mechanism), indifferent embodiments. As illustrated at 615, the method may alsoinclude the application receiving input indicating a pickup flow ratefor one or more brush strokes. For example, the application may obtain adefault pickup flow rate stored in memory for the application, or mayreceive input specifying a pickup flow rate from a user through agraphical user interface (e.g., using a slider bar or another inputmechanism), in different embodiments. The method may also include theapplication receiving input indicating a selected paint to be depositedby one or more brush strokes, as in 620. In some embodiments theapplication may also obtain (or receive from a user) values of one ormore physically meaningful painting parameters, such as a drying rate, acanvas wetness value, or a pickup mix ratio. Such parameters aredescribed in more detail below. As illustrated in FIG. 6, the method mayinclude the application loading the reservoir buffer of the brush modelwith the selected paint, as in 625.

After the brush model is loaded with the selected paint, the method mayinclude the application receiving input defining a brush stroke, as in630, and applying paint from the pickup buffer and/or the reservoirbuffer to the canvas, as described herein. As illustrated at 640, themethod may also include storing data representing the modified canvas(i.e. data representing the image on the canvas as modified by the brushstroke) in memory. In some embodiments, the method may include theapplication automatically cleaning the brush model and/or refilling thereservoir buffer prior to the next brush stroke (e.g., if such optionalfeatures are enabled for the current workflow), as in 650. Examples ofsuch automatic brush cleaning and filling features are described in moredetail below. Note that any or all of the operations illustrated in FIG.6 may be repeated during a given painting simulation session to applymultiple brush strokes to a digital canvas. For example, the operationsillustrated in 630-650 may be repeated to apply multiple strokes of thesame paint to the canvas, or the operations illustrated in 620-650 or in610-650 may be repeated to apply brush various strokes to the canvasusing different paints, in some embodiments.

When a physical paint brush is used to paint on canvas, the length ofthe resulting brush stroke is determined, at least in part, by howquickly the paint on the brush dries (by being deposited on the canvas).If there is paint already on the canvas, the extent to which the painton the canvas mixes with the paint on the brush is determined by how wetthe paint on the canvas is and how wet the paint on the brush is. Insome embodiments, the painting simulation applications described hereinmay provide a set of one or more parameters to control canvas wetness,the rate at which paint dries, and/or various paint mixing settings fora virtual paint brush. In such embodiments, these parameters may be used(and adjusted) to simulate a wide variety of color mixing and streakingeffects similar to the effects that may be created using a physicalbrush moving through real paint on a physical canvas. For example, theymay be adjusted so that a brush stroke produces long, faint streaks, orshorter, brighter streaks, such as by affecting how much paint is pickedup from the canvas during the stroke and/or how evenly paint picked upfrom the canvas is distributed throughout the rest of the stroke. Avalue of a color mixing type parameter may control how much of thepicked up paint is present in the output (i.e. the amount reflected inthe pixel data of an image on the digital canvas) or how much of thepicked up paint can be seen in the output image. For example, a highermixing value may cause a streak to appear quickly, while a lower mixingvalue may result in a streak that lasts longer, but has less of aneffect on the overall appearance of the brush stroke. A set ofconfigurable parameters provided in the application may be physicallymeaningful, and thus may help to simulate an organic paintingexperience. For example, in some embodiments, an intuitive set ofparameters (such as those described below) may be used to simulatepainting with different types of paints, e.g., oil paints, acrylicpaints, watercolors, or paints having properties that are a mix of theproperties of two or more paint types.

In some embodiments, three such parameters may be used and their valuesmay be adjusted to produce a wide range of brush strokes and paintingeffects. For example, the parameters may include a drying rate (i.e. aparameter whose value reflects how quickly the paint being depositeddries out on the brush), a canvas wetness parameter, and a pickup mixratio (i.e. a parameter whose value reflects the amount of paint pickedup from the canvas that is mixed with paint already loaded on thebrush). In various embodiments, these parameters may be applied indigital painting applications that employ bristle brush models or othertypes of brush models, and in digital painting applications that employvarious paint load models (including, but not limited to, thosedescribed herein). Note that in embodiments in which the paint on avirtual brush is modeled using a pickup buffer and a reservoir buffer,as described above, the value of a pickup mix ratio parameter mayinfluence the amount of paint from the pickup buffer that is mixed withpaint from the reservoir buffer. In embodiments that do not include thispaint load model, the value of a pickup mix ratio parameter may reflectthe amount of picked up paint that is mixed with reservoir paint andstored in a single surface layer of the brush model, for example.

One embodiment of a method for applying one or more physically realisticnatural media painting parameters in a digital painting application (orsimulation module thereof) is illustrated in FIG. 7. In this example,the method may include a natural media painting simulation applicationreceiving input representing a brush stroke on a digital canvas, as in710. As illustrated at 715, values for a drying rate, a canvas wetnessparameter, and/or a pickup mix ratio may be obtained. For example, theapplication may obtain default or current values for one or more ofthese parameters from a memory in which they are stored, or currentvalues may be specified by a user and received by the applicationthrough a graphical user interface, in different embodiments. In someembodiments, a set of default parameter values may be pre-defined forparticular paints or paint types. For example, one set of defaultparameter values may be pre-defined for the simulation of oil paints,and a different set of default parameter values may be pre-defined forthe simulation of watercolors, since watercolors typically dry fasterthan oil paints, both on a paint brush and on the canvas. In otherembodiments, the user or the application may define parameter values forspecific paints (including custom paints or paints that exhibit custom,user-defined painting properties). In some embodiments, one or more userinterface elements, such as slider bars, text entry boxes, menus, dials,etc., may be provided via which a user may set or change the values ofthese parameters.

As illustrated at 720, in this example, the method may include theapplication applying the brush stroke to the digital canvas, and theeffect of the stroke may be dependent on the values of the drying rate,canvas wetness parameter, and/or pickup mix ratio. The effect of each ofthese parameters on various brush strokes is described in more detailbelow. In some embodiments, the application may store data representingthe canvas as modified by the brush stroke, as in 725. Note that theoperations illustrated in FIG. 7 may be repeated to apply one or moreadditional brush strokes to the digital canvas using the same paint or adifferent paint (e.g., if another paint is selected between brushstrokes).

In some embodiments, a drying rate parameter (which may also be referredto as a “dryout” parameter, or a load parameter) may be used to set oradjust the rate at which paint being deposited dries out (i.e. dries onthe brush), and thus the length of stroke that it is possible todeposit. For example, in some embodiments, a low drying rate value mayallow long strokes to be deposited, while a high drying rate value mayonly allow relatively short strokes to be deposited. FIG. 8A is a flowdiagram illustrating one embodiment of a method for applying a dryingrate parameter value in a digital painting application (or simulationmodule thereof). As illustrated in this example, the method may includethe application receiving input representing a brush stroke on a digitalcanvas, as in 805. The method may also include the application obtaininga value for a drying rate, as in 810. For example, in variousembodiments, the drying rate may be obtained from a memory in which itis stored on behalf of the application, or may be received via a userinterface, as described herein. If the drying rate indicates that thepaint to be deposited is quick drying, shown as the positive exit from815, the method may include the application applying a short brushstroke to the canvas, as in 820. For example, when the drying rate ishigh, the brush model may run out of paint that is wet enough to depositon the canvas during the application of the brush stroke, and the swathof paint deposited on the canvas may be thinned out and/or non-existentby the end of the brush stroke.

If the drying rate does not indicate that the paint to be deposited isquick drying, shown as the negative exit from 815, the method mayinclude the application applying a long brush stroke to the canvas, asin 825. For example, when the drying rate is low, the brush model maynot run out of paint that is wet enough to deposit on the canvas duringthe application of the brush stroke, and the paint deposited on thecanvas may appear as a relatively full swath of paint for the during ofthe brush stroke.

In some embodiments, a canvas wetness parameter may be used to set oradjust the amount of paint that is picked up from the canvas during abrush stroke and eventually mixed with paint on the brush. For example,if the value of the canvas wetness parameter is high, indicating thatthe paint already present on the canvas is very wet, more paint may bepicked up by the brush during a brush stroke than if the value of thecanvas wetness parameter is low. FIG. 8B is a flow diagram illustratingone embodiment of a method for applying a canvas wetness parameter valuein a digital painting application (or simulation module thereof). Asillustrated in this example, the method may include the applicationreceiving input representing a brush stroke on a digital canvas, as in805. The method may also include the application obtaining a value for acanvas wetness parameter, as in 830. For example, in variousembodiments, the value of the canvas wetness parameter may be obtainedfrom a memory in which it is stored on behalf of the application, or maybe received via a user interface, as described herein. If the value ofthe canvas wetness parameter indicates that the canvas is very wet,shown as the positive exit from 835, the method may include theapplication applying a brush stroke to the canvas during which a lot ofpaint is picked up from the canvas, as in 840. As described herein, insome embodiments, paint picked up during the stroke may be loaded into apickup buffer of the brush model, mixed with paint already stored in thepickup buffer, and/or re-deposited on the canvas during this or adifferent brush stroke (e.g., with or without being mixed with paintfrom a reservoir buffer of the brush model and/or additional paint onthe canvas).

If the value of the canvas wetness parameter does not indicate that thecanvas is very wet, shown as the negative exit from 835, the method mayinclude the application applying a brush stroke to the canvas duringwhich little or no paint is picked up from the canvas, as in 845.Therefore, in some embodiments, the paint deposited during the currentbrush stroke may include little or no paint picked up from the canvasduring the current brush stroke, but may consist largely of paint from areservoir buffer of the brush model and/or paint stored in a pickupbuffer of the brush model during a previous brush stroke.

In some embodiments, a pickup mix ratio (which may also be referred tosimply as a “mix parameter”) may be used to set or adjust the extent towhich the paint picked up from the canvas is forcibly mixed with thepaint already on the brush. For example, in some embodiments, if thepickup mix ratio is high, more paint from a pickup buffer of the brushmodel may be mixed with paint from a reservoir buffer of the brush modelthan if the pickup mix ratio is low. FIG. 8C is a flow diagramillustrating one embodiment of a method for applying a pickup mix ratiovalue in a digital painting application (or simulation module thereof).As illustrated in this example, the method may include the applicationreceiving input representing a brush stroke on a digital canvas, as in805. The method may also include the application obtaining a value for apickup mix ratio, as in 850. For example, in various embodiments, thevalue of the pickup mix ratio may be obtained from a memory in which itis stored on behalf of the application, or may be received via a userinterface, as described herein. In some embodiments, if the value of thepickup mix ratio indicates that a lot of paint picked up from the canvasshould be mixed in with paint in a reservoir buffer of the brush model,shown as the positive exit from 855, the method may include theapplication applying a brush stroke to the canvas during which a largeamount of paint picked up from the canvas is mixed with paint from thereservoir buffer and deposited on the canvas until the pickup buffer isdepleted, as in 860. For example, in some embodiments, paint picked upduring the stroke may be loaded into a pickup buffer of the brush modeland mixed with paint already stored in the pickup buffer (i.e. paintthat was stored in a pickup buffer of the brush model during this or aprevious brush stroke). When the pickup mix ratio is high, a largeamount of the paint stored in the pickup buffer may be mixed with paintfrom the reservoir buffer and re-deposited on the canvas during thecurrent brush stroke.

In some embodiments, if the value of the pickup mix ratio does notindicate that a lot of paint picked up from the canvas should be mixedin with paint in a reservoir buffer of the brush model, shown as thenegative exit from 855, the method may include the application applyinga brush stroke to the canvas during which little or no paint that waspicked up from the canvas is re-deposited on the canvas, as in 865. Inother words, if the pickup mix ratio is low, the paint deposited duringthe current brush stroke may consist largely (or entirely) of paint fromthe reservoir buffer.

In one example, if the reservoir buffer of a brush model stores whitepaint and the virtual brush paints over an area of (wet) red paint whilea pickup mix ratio is set to 50%, the resulting stroke may appear as apink smear until the picked up red paint has been depleted, with therest of the stroke being white. In a similar example, if the pickup mixratio is set to 10%, the resulting stroke may appear as a very lightpink smear until the red is paint has been depleted (which may takelonger than in the previous example), with the rest of the stroke beingwhite. Note that if the pickup mix ratio is set to 0%, none of the paintpicked up may be re-deposited during the stroke (resulting in a strokethat is all white, in these examples), and if the pickup mix ratio isset to 100%, only the paint the that was picked up maybe deposited(resulting in a stroke that is all red, in these examples). Asillustrated in these examples, a digital painting application thatsupports a configurable pickup mix ratio may provide users with morecontrol over the ratio of reservoir paint and picked up paint depositedduring a given brush stroke. Without this configurable parameter, in theexample above, if there is enough paint in the pickup buffer to satisfythe brush flow rate, the application may only deposit paint from thepickup buffer until it is depleted (as illustrated in FIG. 5C). Theconfigurable pickup mix ratio may allow users to forcibly mix inreservoir paint even in this case. Again note that in some embodiments,a configurable pickup mix ratio may be applied in a digital paintingapplication that models paint on a brush without the use of a separatepickup buffer. In such embodiments, the value of this configurableparameter may be used to determine the length of a streak produced whenre-depositing picked up paint or when depositing a mix of picked uppaint and reservoir paint.

FIG. 9 illustrates an example user interface of a digital paintingapplication that includes slider bars for setting and/or adjusting thevalues of a drying rate parameter, a canvas wetness parameter, andpickup mix ratio for strokes drawn on a digital canvas using a virtualbrush, according to some embodiments. In this example, the userinterface is presented on display 900, which is divided into threeregions or areas: menus 960, controls 910 (which includes palette 920),and work area 950. In this example, controls 910 may include one or moreuser-modifiable controls, such as slider bars, buttons, dials, pop-upmenus, pull-down menus, alphanumeric text entry boxes, etc., forspecifying various parameters of the painting functions to be applied toa digital canvas. In this example, three slider bars are provided tospecify values of a drying rate parameter, a canvas wetness parameter,and pickup mix ratio. In other embodiments, slider bars may be used tospecify values (or relative values) of other configurable parameters ofa painting function, such as an amount of ink, a pigment concentrationamount, a transparency value, a brush type, a brush width, a bristlestiffness, or other parameters that are to be applied when using brushtool 930 to apply paint on the digital canvas being edited in work area950. Various methods of specifying values of any of the parameters usedin simulating painting effects (i.e. methods other than thoseillustrated in FIG. 9) may be used in other embodiments. In someembodiments, slider bars or another input mechanism in controls area 910may be used to override a pre-set or default value of one or more of theparameters used in the digital painting application. Other optionaltools may be included in the user interface in various embodiments, suchas an eraser function, a reset function, or an “undo” tool that undoesthe most recent user action in the work area 950.

In the example illustrated in FIG. 9, menus 960 may include one or moremenus, for example menus used to navigate to other displays in thepainting application, open files, print or save files, undo/redoactions, and so on. In this example, work area 950 is the area in whichan image on a digital canvas that is being created or edited isdisplayed as various digital painting operations are performed. Invarious embodiments, work area 950 may display a portion or all of adigital canvas to which paint is to be added, or a portion or all of apreviously existing digital canvas being modified by adding paint, asdescribed herein. In the example illustrated in FIG. 9, work area 950illustrates a digital painting session in progress, in which a brushtool 930 has been used to paint a brush stroke 940 on a digital canvas.

FIG. 10 illustrates work area 950 following the application of threebrush strokes to the digital canvas. Specifically, FIG. 10 illustratesthe changes in the length and appearance of a brush stroke as the valueof a drying rate parameter is changed, according to some embodiments. Inthis example, brush stroke 943 was made with a relatively low dryingrate value of 10%, brush stroke 942 was made with a mid-range dryingrate value of 50%, and brush stroke 941 was made with a relatively highdrying rate value of 85%. As described herein the drying rate parametermay represent the rate at which paint being deposited dries while thebrush stroke is being applied, and thus may affect the amount of paintthat can be deposited at different points along the path of the brushtool. As illustrated in FIG. 10, brush stroke 943 (made with a lowdrying rate value) is comparatively longer than the two strokes madewith higher drying rate values, and brush stroke 941 (made with a highdrying rate value) is comparatively shorter than the two strokes madewith lower drying rate values. Note also that the swath of paintdeposited toward the end of brush stroke 943 (made with a low dryingrate value) is comparatively fuller than the swath of paint depositedtoward the end of the two strokes made with higher drying rate values,and the swath of paint deposited toward the end of brush stroke brushstroke 941 (made with a high drying rate value) is comparatively thinnerthan the swath of paint deposited toward the end of the two strokes madewith lower drying rate values. Note that in embodiments that employ abristle brush model, the value of the drying rate parameter may be thesame or different for the paint stored in and/or deposited by differentones of the bristles. Note also that even if the drying rate parametervalue is the same for the paint stored in and/or deposited by differentones of the bristles, because various bristles may be in contact withthe canvas for different lengths of time, they may run out of paint atdifferent times, in some embodiments.

FIG. 11 illustrates work area 950 following the application of fivebrush strokes to the digital canvas. Specifically, FIG. 11 illustratesthe changes to a brush stroke as the value of a canvas wetness parameteris increased, according to some embodiments. In this example, five brushstrokes 1130 were applied to the canvas from left to right, eachsweeping over exiting canvas paint 1120. In this example, the canvaswetness parameter was set to different values for each of the fivestrokes, with the canvas wetness parameter value being the lowest forthe brush stroke depicted near the top of work area 950 andincrementally increasing for each of the brush strokes below the topbrush stroke. As described herein, if the canvas wetness parameter isset to a low value, relatively little paint will be picked up from thecanvas (as compared to the amount of paint pickup up from the canvaswhen the canvas wetness parameter is set to higher values). Asillustrated in FIG. 11, setting the canvas wetness parameter to a lowervalue may result in a relatively lower amount of streaking as comparedto the streaking that results when a brush stroke passes over canvaspaint while the canvas wetness parameter value is set to a higher value.As illustrated in FIG. 11, the brush stroke made with the highest canvaswetness parameter value picked up more paint from the canvas than thebrush strokes made with lower canvas wetness parameter values, and thisbrush stroke made in a larger streak than did the brush strokes madewith lower canvas wetness parameter values.

FIG. 12 illustrates work area 950 following the application of fivebrush strokes to the digital canvas. Specifically, FIG. 12 illustratesthe changes to a brush stroke as the value of the pickup mix ratio isdecreased, according to some embodiments. For illustrative purposes, ahigh canvas wetness value (e.g., 100%) is assumed in this example. Inthis example, five brush strokes 1230 were applied to the canvas fromleft to right, each sweeping over exiting canvas paint 1220. In thisexample, the pickup mix ratio was set to different values for each ofthe five strokes, with the pickup mix ratio value being the highest forthe brush stroke depicted near the top of work area 950 andincrementally decreasing for each of the brush strokes below the topbrush stroke. As described herein (and assuming a high canvas wetnessvalue), a relatively high pickup mix ratio value may result in the brushstroke primarily streaking the paint that was picked up from the canvasover the canvas (i.e. without mixing in very much, if any, paint thatwas already on the brush). A low pickup mix ratio value may result incomparatively more of the paint already on the brush being blended withthe picked-up canvas paint, and the blended paint being streaked on thecanvas. As illustrated in FIG. 12, setting the pickup mix ratio to alower value may result in a relatively lower amount of picked up paintbeing mixed with the paint already on the brush and re-applied to thedigital canvas as compared to the amount of picked-up paint that ismixed with the paint already on the brush and re-applied to the digitalcanvas when a brush stroke passes over canvas paint while the canvaspickup mix ratio value is set to a higher value. As illustrated in FIG.12, the brush stroke made with the highest pickup mix ratio value pickedup (and streaked) more paint from the canvas than the brush strokes madewith lower pickup mix ratio values.

As described above, in some embodiments that employ a pickup buffer anda reservoir buffer (and in which paint may be deposited directly fromboth buffers), a pickup mix ratio may control how much paint is takenfrom each of the two buffers and deposited on the digital canvas. Insome embodiments, the default mode may be that if the pickup buffercontains enough paint to be able to match the brush flow rate for agiven brush stroke, all paint to be deposited by that brush stroke willcome from the pickup buffer (until the pickup buffer is depleted). Insome embodiments, the user may override this default mode and adjust thepickup mix ratio to forcibly mix in paint from the reservoir buffer,even when the pickup buffer could satisfy the brush flow rate. Loweringthe pickup mix ratio may result in more paint being mixed from thereservoir buffer during the stroke. The pickup mix ratio may thus beused to control the length and intensity of a streak made by picked-uppaint, e.g., whether a long, faint streak is produced (if the pickup mixratio is set low), or a short, intense streak is produced (if the pickupmix ratio is set high).

By adjusting the values of the drying rate parameter, canvas wetnessparameter, and/or pickup mix ratio of a digital painting application, awide variety of strokes and stroke effects may be possible, asdemonstrated in FIGS. 9 through 12. Since this parameter set isrelatively small and is physically meaningful, it may in someembodiments provide the user a more natural, intuitive, and organicmethod to achieve various stroke effects than is provided inconventional painting simulation tools.

One embodiment of a digital painting workflow using a digital paintingapplication (or simulation module thereof) that applies one or morephysically realistic natural media painting parameters is illustrated bythe flow diagram in FIG. 13. As illustrated in this example, the methodmay include the application receiving input indicating a selected paintto be applied to a digital canvas, as in 1305. For example, theapplication may receive input specifying a color and/or type of paintthrough a graphical user interface that includes one or more sliderbars, dials, pull down menus, check boxes, or other input mechanisms, indifferent embodiments. The method may include the application loading abrush model with the selected paint, as in 1310. For example, inembodiments in which paint is stored in the brush model in two layers,as described herein, the application may load the selected paint intocells of the reservoir buffer. As illustrated at 1315 in FIG. 13, insome embodiments, the method may include obtaining pre-set parametervalues for the selected paint. For example, values of a drying rateparameter, canvas wetness parameter, and/or pickup mix ratio may bepre-defined for each available paint or paint type, for a given paintingsession or painting workflow, for a given canvas type (which may also beselectable), or for a given brush type (which may also be selectable).

As illustrated in this example, the method may include the applicationreceiving one or more inputs overriding the pre-set values of one ormore configurable painting parameters (such as a drying rate parameter,canvas wetness parameter, and/or pickup mix ratio), as in 1320. Forexample, in some embodiments, slider bars, dials, pull-down menus, checkboxes, or other input mechanisms may be provided, and a user may modifythe current or pre-set values of these configurable parameters. Notethat in other embodiments, there may be no pre-defined values for someor all of these parameters, and/or they may be set by the user for aparticular brush stroke, painting session, workflow, or canvas. In stillother embodiments, the value of the canvas wetness parameter and/or thevalue of the pickup mix ratio may be mapped to another input channel(e.g., pressure applied by or to the brush) and may vary during a givenbrush stroke as the value of the other input varies. If the applicationreceives input overriding any pre-set parameter values, shown as thepositive exit from 1320, the method may include the applicationmodifying those parameter values for use in applying one or more brushstrokes with the selected paint, as in 1325. As illustrated at 1330, inresponse to the application receiving input representing a brush strokeon the canvas, the application may apply the brush stroke with theselected paint, and the appearance of the stroke may be dependent on thecurrent values of these configurable parameters (e.g., one or morepre-set and/or user-modified parameter values).

In some embodiments, the method may include cleaning and/or filling thebrush between strokes, as in 1340. For example, the digital paintingapplication may support an optional (i.e. selectable) automatic brushcleaning and/or brush filling feature, as described in more detailbelow. If there are more brush strokes to be applied with the selectedpaint (and current parameter values), shown as the positive exit from1350, the method may include the repeating the operations illustrated at1330-1340 for one or more additional brush strokes. If no more brushstrokes are to be applied with the selected paint (and current parametervalues), shown as the negative exit from 1350, the method may includecleaning the brush and/or loading the brush with a different paint, asin 1360. For example, paint of a different color (and/or paint withdifferent parameter values) may be loaded into the reservoir buffer ofthe brush model with or without first cleaning the brush (e.g., byemptying the reservoir buffer and/or a pickup buffer of the brushmodel), in different embodiments. Loading the brush model with differentpaint may involve the application receiving input indicating a differentselected paint, as in 1305, after which any or all of the otheroperations illustrated in FIG. 13 may be repeated in order to apply oneor more brush strokes with the newly selected paint (repeat not shown).

Physical paint brushes have paint loaded onto them as the painter pushesand rotates the brush either onto a canvas or onto a color palette. Asthe paint on the canvas is usually not all the same color, the physicalpaint brush may have paint of different colors loaded non-uniformlyamong the bristles and along each of the bristles. In some embodiments,the digital painting applications described herein may provide amechanism via which a user may load paints of different colors onto adigital brush, e.g., from paint already deposited onto a digital canvas.The mechanism may be applicable to, and consistent between, both virtualbrushes that model bristle brushes and static-tipped virtual brushes.The mechanism may allow a user to load paint onto the brush from thecanvas, thus using the canvas as a color palette. Such a mechanism mayreproduce actions taken in analog painting in the digital world. Usingthis mechanism, the painter may use a portion of the canvas or anoff-canvas palette to mix paint, and then may load the brushnon-uniformly from the mixed paint, effectively simulating the waypainters often work in the real world. The user may mix paint using thevirtual brush in a standard painting mode, and then invoke or enable anon-uniform paint loading mode to load a paint configuration from themixed paint on the canvas into the reservoir.

For example, a user may apply one or more brush strokes with variousvalues of the drying rate, canvas wetness, and pickup mix ratioparameters described above to mix paints and create a paint sample witha desired appearance (i.e. one that exhibits a non-uniform distributionof paint), and may use one of the non-uniform paint loading techniquesdescribed herein to load paint exhibiting that non-uniform distributioninto the brush, e.g., into a reservoir buffer of the brush model. Theuser may then apply one or more brush strokes to apply paint matchingthe paint sample they created on another portion of the digital canvas.Note that in some embodiments, loading the virtual brush using one ofthe non-uniform loading techniques described herein may not reduce theamount of paint in the sampled portion of the canvas. In other words,sampling paint on the canvas to load a virtual brush in a non-uniformpaint loading mode is not equivalent or analogous to an operation thatmerely picks up paint from the canvas and stores it on the brush.

One embodiment of a method for loading a digital paint brush withnon-uniform colors from a digital canvas is illustrated by the flowdiagram in FIG. 14. As illustrated in this example, the method mayinclude a natural media painting simulation application receiving inputselecting a non-uniform paint loading mode, as in 1410. For example, insome embodiments, the application may support one or more optional (i.e.selectable) non-uniform paint loading modes. The method may include theapplication receiving input identifying a region of a digital canvas inwhich paint has been deposited in a non-uniform manner, as in 1420. Forexample, a user may select a region of the digital canvas (e.g., using aselection mechanism of a graphical user interface) in which paint hasbeen deposited using multiple brush strokes such that the color,opacity, and/or other parameters of the paint in the region arenon-uniform.

As illustrated at 1430, the method may include the application loading abrush model with a distribution of paint corresponding to thenon-uniform distribution of paint in the identified region of thecanvas. As described in more detail below, the particular actions takenby the application during the non-uniform paint loading operation may bedependent on the selected non-uniform paint loading mode. In someembodiments in which a brush model includes a reservoir buffer and apickup buffer, the non-uniform paint loading may load cells of thereservoir buffer with paint having the color and/or characteristics ofrespective canvas cells in the identified region. After loading thebrush model with the non-uniform paint, the application may receiveinput representing a brush stroke on the canvas, as in 1440. In responseto this input, the method may include the application applying thenon-uniform paint loaded in the brush model to canvas pixels affected bythe brush stroke, as in 1450. For example, paint may be deposited fromthe reservoir buffer (which may store a non-uniform distribution ofpaint loaded using the selected non-uniform paint loading mode) and/or apickup buffer (which may store paint having one or more colors and/orcharacteristics that was picked up by the brush model during this or aprevious brush stroke) and mixed with any paint already present incanvas pixels over which the brush stroke sweeps. In some embodiments,the application may store data representing the digital canvas, asmodified by the brush stroke (as in 1460).

FIG. 15 illustrates one embodiment of a user interface in a digitalpainting application through which a digital brush is loaded withnon-uniform colors by directly sampling a portion of a digital image. Inthis example, the user interface is divided into three regions or areas:menus 1560, controls 1510 (which includes palette 1520), and work area1550. In this example, controls 1510 may include one or moreuser-modifiable controls, such as buttons, slider bars, dials, pop-upmenus, pull-down menus, alphanumeric text entry boxes, etc., forspecifying various parameters of the painting functions to be applied toa digital canvas. In this example, a button (labeled “non-uniform loadmode”) has been selected to enable or invoke a non-uniform paint loadingmode for the painting application. This is shown by the bold outlinearound the “non-uniform load mode” button in controls area 1510. In someembodiments, two or more non-uniform paint loading modes may be providedand/or selectable in the application (e.g., a single-fill paint loadingmode, and a continuous-fill paint loading mode). In other embodiments,slider bars may be used to specify values (or relative values) of otherconfigurable parameters of a painting function, such as an amount ofink, a pigment concentration amount, a transparency value, a brush type,a brush width, a bristle stiffness, or other parameters that are to beapplied when using brush tool 1530 to apply paint on the digital canvasbeing edited in work area 1550. Various methods of specifying values ofany of the parameters used in simulating painting effects (i.e. methodsother than those illustrated in FIG. 15) may be used in otherembodiments. In some embodiments, slider bars or another input mechanismin controls area 1510 may be used to override a pre-set or default valueof one or more of the parameters used in the digital paintingapplication. Other optional tools may be included in the user interfacein various embodiments, such as an eraser function, a reset function, oran “undo” tool that undoes the most recent user action in the work area1550.

In the example illustrated in FIG. 15, menus 1560 may include one ormore menus, for example menus used to navigate to other displays in thepainting application, open files, print or save files, undo/redoactions, and so on. In this example, work area 1550 is the area in whichan image on a digital canvas that is being created or edited isdisplayed as various digital painting operations are performed. Invarious embodiments, work area 1550 may display a portion or all of adigital canvas to which paint is to be added, or a portion or all of apreviously existing digital canvas being modified by adding paint, asdescribed herein.

As described herein, in some embodiments the digital paintingapplication may allow the user to load a brush model with non-uniformcolors by directly sampling the digital canvas on which they arepainting. For example, the user may hover a brush tool over a desireddistribution of color on the canvas, and may load those colors into thebrush tool for use in subsequent painting operations. In someembodiments, the user may move the brush to a desired location so thatthe brush hovers over the region of the canvas from which the userdesires to sample a set of non-uniform colors. In the example userinterface illustrated in FIG. 15, work area 1550 illustrates a digitalpainting session in progress. In this example, the user is causing abrush tool 1530 to hover over a region 1570 of a digital canvas fromwhich a non-uniform distribution of paint may be loaded.

In some embodiments, in response to a single user input (e.g., a singleclick of a button, or a cursor control device), the application maysample the region on the canvas under the brush tool and may load thebrush with the selected color(s). In some embodiments, the reservoirbuffer may be loaded to full capacity with the selected color(s) inresponse to the single user input. As previously noted, in someembodiments, the paint on the canvas and in the pickup buffer may not beaffected by this non-uniform paint loading operation, i.e. the sampledpaint may remain on the canvas in its current quantity, and no paint isloaded into the pickup buffer. In order to load a brush with color(s)sampled from the canvas, the user may invoke or enable a non-uniformpaint loading mode, e.g., by holding down a modifier key while clickinga button or cursor control device, or alternatively by invoking orenabling a non-uniform paint loading mode via a user interface elementdedicated for that purpose.

FIG. 16 is a flow diagram illustrating one embodiment of a method forloading paint from a portion of a digital canvas under a brush toolusing a single-fill, non-uniform paint loading mode. As illustrated at1610, the method may include a user specifying the use of a single-fill,non-uniform paint loading mode. In some embodiments, this single-fill,non-uniform paint loading mode may be selectable using a check box,pull-down menu, or cursor control mechanism. In some embodiments, thesingle-fill, non-uniform paint loading mode may be one of two or morenon-uniform paint loading modes that is supported in the paintingapplication and that are selectable by the user. As illustrated at 1620,the method may include the user causing a brush tool to hover over anarea of the canvas on which a non-uniform distribution of paint has beendeposited. For example, the user may use a mouse, touch pad, or trackball to position a brush tool over a selected portion of the digitalcanvas while the single-fill, non-uniform paint loading mode is enabled.

As illustrated in this example, the method may include the userinitiating a single-fill, paint loading operation while the brush toolis positioned over the selected area, as in 1630. For example, in oneembodiment, the user may click a cursor control device button to selectthe area and then may release the cursor control device button toinitiate the load operation. The application may then fill the brushmodel with paint corresponding to the non-uniform distribution of paintin the selected area, as in 1640. For example, in embodiments in which abrush model includes a reservoir buffer, paint having the color andcharacteristics of the paint in the region of the digital canvas underthe brush tool may be loaded the region under the brush tool intocorresponding respective cells of the reservoir buffer.

In some embodiments, in response to a continuous user input (e.g., inresponse to a user depressing and holding a button while dragging thebrush tool around on the digital canvas using a cursor control device),the user may continuously load the brush with the colors under thecanvas. For example, the cells of the reservoir buffer corresponding tocells of the bristles in contact with the canvas may be loaded withpaint from the canvas pixels that come in contact with those bristles asa series of samples is taken. In some embodiments, if the user moves thebrush as they are loading paint from the canvas, the newly picked uppaint may be continuously blended (or blurred) with the paint that hasalready been loaded into the brush to generate and store paint withcolor values reflecting this blending or blurring. FIG. 17 is a flowdiagram illustrating one embodiment of a method for loading paint from acanvas region under a brush tool using such a continuous-fill,non-uniform paint loading mode. As illustrated at 1710, the method mayinclude a user specifying the use of a continuous-fill, non-uniformpaint loading mode. In some embodiments, this continuous-fill,non-uniform paint loading mode may be selectable using a check box,pull-down menu, or cursor control mechanism. In some embodiments, thecontinuous-fill, non-uniform paint loading mode may be one of two ormore non-uniform paint loading modes that is supported in the paintingapplication and that are selectable by the user. As illustrated at 1720,the method may include the user causing a brush tool to hover over anarea of the canvas on which a non-uniform distribution of paint has beendeposited. For example, the user may use a mouse, touch pad, or trackball to position a brush tool over a selected portion of the digitalcanvas while the continuous-fill, non-uniform paint loading mode isenabled.

As illustrated in this example, the method may include the userinitiating a continuous-fill, paint loading operation while the brushtool is positioned over the selected area, as in 1730. For example, theuser may click a cursor control device button while the continuous-fill,non-uniform paint loading mode is enabled in order to initiate theloading operation. As illustrated at 1740, the application may thencontinuously load the brush model with paint corresponding to thenon-uniform distribution of paint under the brush tool and/or may blendthis paint with paint already on the brush while the brush tool passesover the digital canvas during the fill operation. For example, in oneembodiment, the application may continuously load the brush model withpaint corresponding to the non-uniform distribution of paint under thebrush tool as the user drags the brush tool around over the digitalcanvas and holds the cursor control device button (i.e. until the userreleases the cursor control device). In some embodiments, theapplication may continuously load paint having the color andcharacteristics of the paint in the region of the digital canvas underthe brush tool into corresponding respective cells of a reservoir bufferof the brush model and may blend that newly loaded paint with the paintalready present in the reservoir buffer (as described above) until theloading operation is terminated (e.g., by releasing a cursor controldevice) and/or until the reservoir buffer is full.

Using a digital painting application that employs the methods describedabove for the non-uniform loading of digital brushes, the user may, forexample, continuously load new color, apply one or more brush strokes topaint with that color, load another set of non-uniform colors, andcontinue painting. In some embodiments, by using a modifier key or loadmode setting to switch the state of the brush to enable or invoke aloading operation, the user may switch back and forth between a paintloading mode and a painting mode without having to manually define a setof colors to be loaded across the virtual brush each time they want toload a different set of non-uniform colors.

Note that for any brush model, a painting simulation application mayneed to be able to determine the contact area between the virtual brushand the digital canvas at any given time. When the brush model is a 2Dstamp-based model, the contact area may be defined by the area of thestamp. When the brush model is a bristle brush model, the contact areamay be defined by the combination of locations on the digital canvasthat are touched by one of the bristles. In some embodiments, thenon-uniform paint loading operations described herein may, for thedetermined contact area, sample the colors on the digital canvas at thepixels that are in contact with the brush and load them into the brushmodel, whatever that brush model may be. Therefore, these operations maybe applied with both static brush models and bristle brush models, amongothers. For example, FIG. 18A illustrates work area 1550 of the userinterface illustrated in FIG. 15 following the performance of anon-uniform paint loading operation and a subsequent painting operationusing the non-uniform paint loaded on the brush, according someembodiments. In this example, the non-uniform distribution of paint incanvas region 1570 illustrated in FIG. 15 was loaded into brush tool1530 and used to apply a brush stroke 1580 on the digital canvas. Inthis example, the painting application employs a 2D stamp-based brushmodel, according to one embodiment. Therefore, the non-uniformdistribution of paint sampled from the canvas was copied to thereservoir as a 2D stamp, i.e. the sampled paint defines a 2D stamp to beapplied by the brush tool. As illustrated in FIG. 18A, brush stroke 1580appears as a series of 2D stamps, each of which exhibits the non-uniformcolor distribution that was sampled in canvas region 1570.

FIG. 18B illustrates work area 1550 of the user interface illustrated inFIG. 15 following the performance of a non-uniform paint loadingoperation and a subsequent painting operation using the non-uniformpaint loaded on the brush, according to some embodiments. In thisexample, the non-uniform distribution of paint in canvas region 1570illustrated in FIG. 15 was loaded into brush tool 1530 and used to applya brush stroke 1585 on the digital canvas. In this example, the paintingapplication employs a bristle brush model. In this example, variousbristles of the bristle brush model have been loaded with differentcolors, according to the non-uniform color distribution that was sampledin canvas region 1570. In other words, the non-uniform paint that wassampled from the digital canvas was distributed across the bristles inthe same manner that it was distributed across the sample. Consequently,brush stroke 1585 appears as a stroke of a bristle brush in which thestroke as a whole exhibits the non-uniform color distribution that wassampled in canvas region 1570.

Realistic simulation of natural media painting in a digital medium iscompelling because it enables a wide variety of effects that aredifficult to achieve with conventional digital painting tools. However,real (physical) paint media may be more difficult to manipulate thandigital tools, and painting with real paint may take a considerableamount of time and practice to master. Some embodiments of the paintingsimulation modules described herein may leverage the capabilities ofdigital tools and techniques to ease the workflows and learning curvesassociated with natural media painting. For example, in someembodiments, methods and settings for automatic brush cleaning and brushfilling may be provided to enable common but tedious natural mediapainting tasks to be automated in a digital painting tool.

Some embodiments of a painting simulation module may model a brush tipand the idea that paint loaded onto the brush tip is updated duringstrokes and when the painting color is set. In such embodiments, theuser may perform a “clean” action, which may be analogous to dipping aphysical paint brush in, e.g., turpentine or water, to remove the paintload, and a “fill” action, which may be analogous to dipping a physicalpaint brush into a well or paint on a palette, replenishing the paint onthe brush. During the act of stroking with a virtual brush, the paintload may be depleted (and may eventually run out), and the brush tip mayget dirty (picking up paint from the digital canvas), as happens with areal paint brush. The clean and fill actions may allow the user tomanage the paint load between brush strokes for the desired strokeeffect.

Some embodiments of a painting simulation module may provide twoautomated brush action options: an “auto clean” option and an “autofill” option. When turned on or selected, these options may triggerautomatic brush cleaning and filling actions between strokes, forexample at the beginning of each new stroke. With these two options,there are four possible states for the painting simulation module, eachcorresponding to a common painting workflow. The use of these automatedmethods may improve user efficiency for common workflows in naturalmedia painting simulations without requiring the user to learn aninordinate number of different tools, as may be the case with themethods provided by conventional digital painting tools and conventionalpainting simulation engines. In some embodiments, the use of theseautomated methods may bring a larger scope of natural media paintingwithin the grasp of novice digital painters.

FIG. 19 is a flow diagram illustrating one embodiment of a method forsimulating natural media brush strokes in a digital painting applicationthat provides an automatic brush cleaning feature and an automatic brushfilling feature. As illustrated in this example, the method may includethe natural media painting simulation application receiving inputrepresenting a brush stroke on a digital canvas, as in 1910. The methodmay also include the application obtaining current settings for anautomatic brush clean option and an automatic brush filling option, asin 1920. For example, in some embodiments, the current settings maycorrespond to default settings that may be obtained from a memory inwhich they are stored. In other embodiments, one or more user interfaceelements, such as check boxes, menu options, etc., may be provided viawhich a user may set or change the values of one or more of thesettings. One such user interface is described in more detail below. Asillustrated at 1930, the method may include the application applyingpaint to pixels of the digital canvas that are affected by the brushstroke (e.g., canvas pixels over which a brush tool sweeps to define thebrush stroke).

As illustrated in this example, the application may then determine thestate of the brush model between brush strokes dependent on the currentsettings for the automatic brush cleaning option and the automatic brushfilling option, as in 1940. For example, if the automatic cleaningoption is enabled, the application may clean the brush model prior toapplying any additional brush strokes. Similarly, if the automaticfilling option is enabled, the application may re-load the brush modelwith additional paint prior to applying any additional brush strokes. Ifthe application receives input representing a second brush stroke, as in1950, the application may apply paint to the canvas pixels affected bythe second brush stroke (as in 1960) and the appearance of the secondbrush stroke may be dependent on the determined state of the brush modelbetween the first and second brush strokes.

As noted above, embodiments that include two automatic brush actionoptions may be in one of four possible states, each of which maycorrespond to a common painting workflow. FIGS. 20A through 23Billustrate portions of example user interfaces (similar to thoseillustrated in FIG. 15, and in FIGS. 18A and 18B) that provide userinterface elements to enable or disable an automatic brush cleaning modeand an automatic brush filling mode, according to some embodiments.

FIGS. 20A through 20C illustrate the application of brush strokes in anatural media painting simulation application in which both an automaticbrush cleaning feature and an automatic brush filling feature are off(disabled), according to some embodiments. In this state the behavior ofa brush tool may be equivalent to that of a real (i.e. physical) paintbrush, and the actions taken by a user to apply a series of brushstrokes when the application is in this state may be similar to thosetaken by an artist painting with a physical paint brush. For example,when the application is in this state, the user may manually control thecleaning and filling of the brush as necessary or desired, similar tothe way a painter would use turpentine and/or water and a physical paintpalette to clean and load a physical paint brush between strokes, whennecessary or desired. When the application is in this state, if thebrush gets dirty, the user may choose to leave it dirty or to clean it,depending on the desired effect. Similarly, if the paint is running out,the user may choose to let it run out, and may even continue “painting”with a dry brush (e.g., to create streaks of paint on a wet canvas), orthe user may choose to refill the brush with paint at any time. Manytypes of paint effects may require this level of full, manual control.For example, the user may chose to deposit some paint to be mixed on thecanvas that will shortly dry out and then be blended with thesurrounding paints, e.g., to add highlights or touches of color. Inanother example, if the user wishes to perform multiple stroke taskswith varying brush loads, this mode may allow them to control thevariation of the load between each pair of strokes.

FIG. 20A illustrates an example user interface of a digital paintingapplication that includes user interface elements selectable to enableor disable an automatic brush cleaning mode and an automatic brushfilling mode, according to some embodiments. In this example, tworegions or areas of the user interface are illustrated: controls 2010,and work area 2050. In this example, controls 2010 may include one ormore user-modifiable controls, such as slider bars, dials, pop-up menus,pull-down menus, alphanumeric text entry boxes, etc., for specifyingvarious parameters of the painting functions to be applied to a digitalcanvas.

In this example user interface, a “clean” user interface element isprovided by which a user may manually clean a brush if and when desired,and a color palette is also provided by which a user may manually load abrush with paint if and when desired. For example, controls area 2010includes a user interface element 2025 (labeled “clean”) that isselectable to request or invoke a manual brush cleaning operation (e.g.a brush cleaning operation that is performed on demand in response toselection of user interface element 2025 in controls area 2010).Controls area 2010 also includes palette 2020, elements of which may be“tapped” by the user using brush tool 2030 to request or invoke a manualbrush filling operation (e.g., an operation in which brush tool 2030 isloaded with a paint selected from palette 2020 in response to selectionof one of the user interface elements of palette 2020 in controls area2010). In this example, a user interface element (e.g., a check box) isprovided by which a user may enable or disable an automatic brushcleaning feature, and another user interface element (e.g., a check box)is provided by which a user may enable or disable an automatic brushfilling feature.

In other embodiments, slider bars may be used to specify values (orrelative values) of other configurable parameters of a paintingfunction, such as an amount of ink, a pigment concentration amount, atransparency value, a brush type, a brush width, a bristle stiffness, orother parameters that are to be applied when using brush tool 2030 toapply paint on the digital canvas being edited in work area 2050.Various methods of specifying values of any of the parameters used insimulating painting effects (i.e. methods other than those illustratedin FIG. 20A) may be used in other embodiments. In some embodiments,slider bars or another input mechanism in controls area 2010 may be usedto override a pre-set or default value of one or more of the parametersused in the digital painting application. Other optional tools may beincluded in the user interface in various embodiments, such as an eraserfunction, a reset function, or an “undo” tool that undoes the mostrecent user action in the work area 2050.

In the example illustrated in FIG. 20A, work area 2050 is the area inwhich an image on a digital canvas that is being created or edited isdisplayed as various digital painting operations are performed. Invarious embodiments, work area 2050 may display a portion or all of adigital canvas to which paint is to be added, or a portion or all of apreviously existing digital canvas being modified by adding paint, asdescribed herein. In the example illustrated in FIG. 20A, work area 2050illustrates a digital painting session in progress, in which a brushtool 2030 has been used to paint a brush stroke on a digital canvas.Note that in this example, both the automatic brush cleaning mode andthe automatic brush filling mode are off (i.e. disabled). This isillustrated in FIGS. 20A-20C by the empty checkboxes for these featuresin controls area 2010.

FIG. 20B illustrates the application of a manual brush cleaningoperation and a manual brush filling operation prior to the applicationof an additional brush stroke on the digital canvas displayed in workarea 2050 of the user interface illustrated in FIG. 20A. In this and theother examples that follow, the dashed arrows represent the motion of abrush tool to invoke various functions of the digital paintingapplication. For example, in FIG. 20B, the dashed arrows indicate thatin order to invoke a manual brush cleaning operation and a manual brushfilling operation, the user moved brush tool 2030 to select the “clean”user interface element 2025 in controls area 2010 (e.g., by clicking acursor control button), and then moved brush tool 2030 to select one ofthe user interface elements on palette 2020 of controls area 2010 (e.g.,by clicking a cursor control button to select a paint color from palette2020). In response to these actions by the user, the paintingapplication first cleaned brush tool 2030, and then loaded brush tool2030 with the selected paint.

FIG. 20C illustrates the application of an additional brush stroke onthe digital canvas displayed in work area 2050 of the user interfaceillustrated in FIG. 20A following performance of the manual brushcleaning operation and a manual brush filling operation depicted in FIG.20B and described above. In FIG. 20C, the dashed arrow indicates that inorder to apply the additional brush stroke, the user moved brush tool2030 from the selected user element of palette 2020 of controls area2010 to the digital canvas displayed in work area 2050 and then applieda brush stroke of the selected paint to the canvas.

In oil painting and other physical painting applications, blending ofpaint on the canvas to create smooth gradients is a common and importanttask. For example, a clean fan brush may be flicked back and forthacross a boundary between two high-contrast colors to create a smoothgradient between them. Effective blending requires cleaning the brushbetween strokes so that each stroke simply picks up paint on the canvasand moves it nearby, without depositing new paint or moving paint largedistances across the canvas (e.g., without picking up paint from astroke in one portion of the canvas, and then depositing it in a newarea). A digital painting application that provides an optionalautomatic brush cleaning mode may be useful for recreating such blendingoperations in the digital world without having to learn new tools,interfaces, or actions. For example, if a virtual brush is automaticallycleaned between strokes, the strokes made with the clean brush may beused to blend paints as if they were blended with a smudge tool thatadds no paint to the digital canvas. FIGS. 21A through 21C illustratethe application of brush strokes in a natural media painting simulationapplication in which an automatic brush cleaning feature is on (enabled)and an automatic brush filling feature is off (disabled), according tosome embodiments. When the painting application is in this state, theautomatic brush cleaning feature may be used to automatically clean thebrush between strokes (i.e. without the user having to take action tomanually clean the brush by selecting the “clean” button in controlsarea 2120), so that the brush is empty of all paint at the beginning ofeach new stroke, and so that no new colors are introduced by each newstroke.

FIG. 21A illustrates an example user interface of a digital paintingapplication that is similar to that illustrated in FIGS. 20A-20C anddescribed above. As in the previous example, the user interface includesuser interface elements selectable to enable or disable an automaticbrush cleaning mode and an automatic brush filling mode. Again, tworegions or areas of the user interface are illustrated as controls area2110, and work area 2150. These areas are similar to the regions of theuser interface illustrated in FIGS. 20A-20C, and may include similartools and/or functionality.

In the example illustrated in FIG. 21A, work area 2150 is the area inwhich all or a portion a digital canvas is displayed as various digitalpainting operations are performed. In the example illustrated in FIG.21A, work area 2150 illustrates a digital painting session in progress,in which a brush tool 2130 has been used to paint a brush stroke on adigital canvas. Note that in this example, the automatic brush cleaningmode is on (enabled) and the automatic brush filling mode is off (i.e.disabled). This is illustrated in FIGS. 21A-21C by the checked “autoclean” box and the unchecked “auto fill” box in controls area 2110.Therefore, in this example, at some point after completing theapplication of the brush stroke illustrated in FIG. 21A and prior to theapplication of a next brush stroke, the digital painting applicationautomatically cleans brush tool 2130.

Note that the automatic brush cleaning operation described herein may insome embodiments be performed in response to the completion of a currentbrush stroke (e.g., in response to detecting a “mouse up” action at theend of a brush stroke). In other embodiments, the automatic brushcleaning operation may be performed in response to initiation of a nextbrush stroke (e.g., in response to detecting a “mouse down” action atthe beginning of a brush stroke), or in response to initiation of apaint selection or manual paint loading operation (e.g., so that thebrush is cleaned immediately prior to re-loading the brush with newpaint). Note also that when an automatic brush cleaning mode is enabled,it may be overridden by the user by performing a manual brush fillingoperation to re-load the brush following the execution of the automaticbrush cleaning operation.

FIG. 21B illustrates the application of a manual brush filling operationprior to the application of an additional brush stroke on the digitalcanvas displayed in work area 2150 of the user interface illustrated inFIG. 21A. In this example, the manual brush filling operation isperformed after the brush tool has been automatically cleaned, in orderto refill it with paint for one or more subsequent brush strokes. Asdescribed herein, in other embodiments a manual brush filling operationmay be performed prior to an automatic brush cleaning operation. Asnoted above, the dashed arrows represent the motion of a brush tool toinvoke various functions of the digital painting application. Forexample, in FIG. 21B, the dashed arrow indicates that in order to invokea manual brush filling operation, the user moved brush tool 2130 toselect the one of the user interface elements on palette 2120 ofcontrols area 2110 (e.g., by clicking a cursor control button to selecta paint color from palette 2120). In response to this action by theuser, the painting application loaded brush tool 2130 with the selectedpaint.

FIG. 21C illustrates the application of an additional brush stroke onthe digital canvas displayed in work area 2150 of the user interfaceillustrated in FIG. 21A following performance of the automatic brushcleaning operation and the manual brush filling operation describedabove. In FIG. 21C, the dashed arrow indicates that in order to applythe additional brush stroke, the user moved brush tool 2130 from theselected user element of palette 2120 of controls area 2110 to thedigital canvas displayed in work area 2150 and then applied a brushstroke of the selected paint to the canvas.

Frequently, painters want to paint dirty brush strokes or strokes with acomplex non-uniform load, but each time the brush runs out of paint, itmust be reloaded and dirtied to maintain the desired paint load. Adigital painting application that includes an automatic brush fillingmode may be used to re-create this real world workflow in a manner thatis easier to implement than with real (physical) paint media andphysical paint brushes. For example, a digital painting application inwhich an automatic brush filling mode is on (enabled), but an automaticbrush cleaning mode is off (disabled) may simplify this workflow byautomatically replenishing the paint load at the beginning of eachstroke without changing the color or dirty state. This mode, combinedwith methods to control stroke drying, may enable a painter to createstreaky, dirty brush strokes very easily that would be extremely tediousto produce with a real brush. When the application is this state, if thebrush is dirty, it stays dirty, but it may be refilled after each brushstroke (e.g., the reservoir buffer of the brush model may be refilled)after each stroke.

For example, if the value of a drying rate parameter is high (e.g., ifthe brush will run out of paint quickly), the user could paint a singlestroke that runs out of paint, but may blend the stroke with surroundingpaint, getting the brush dirty and making an interesting and complexcolor stroke. When the stroke is completed, the brush may beautomatically refilled with more of the same paint that is on thedirtied brush at the completion of the stroke (without first cleaningit) so that the next stroke continues from that point on. In otherwords, for the next stroke, the brush is maintained in its dirty state,but more paint is added so that work may continue using the dirtiedbrush. This workflow may be difficult (if not impossible) to achieve inphysical painting, but may be provided by the digital paintingapplications described herein to allow the user to create interestingeffects, in some embodiments. FIGS. 22A through 22C illustrate theapplication of brush strokes in a natural media painting simulationapplication in which an automatic brush cleaning feature is off(disabled) and an automatic brush filling feature is on (enabled),according to some embodiments.

FIG. 22A illustrates an example user interface of a digital paintingapplication that is similar to that illustrated in FIGS. 20A-20C anddescribed above. As in the previous examples, the user interfaceincludes user interface elements selectable to enable or disable anautomatic brush cleaning mode and an automatic brush filling mode.Again, two regions or areas of the user interface are illustrated ascontrols area 2210, and work area 2250. These areas are similar to theregions of the user interface illustrated in FIGS. 20A-20C, and mayinclude similar tools and/or functionality.

In the example illustrated in FIG. 22A, work area 2250 is the area inwhich all or a portion a digital canvas is displayed as various digitalpainting operations are performed. In the example illustrated in FIG.22A, work area 2250 illustrates a digital painting session in progress,in which a brush tool 2230 has been used to paint a brush stroke on adigital canvas. Note that in this example, the automatic brush cleaningmode is off (disabled) and the automatic brush filling mode is on (i.e.enabled). This is illustrated in FIGS. 22A-22C by the unchecked “autoclean” box and the checked “auto fill” box in controls area 2210.Therefore, in this example, at some point after completing theapplication of the brush stroke illustrated in FIG. 22A and prior to theapplication of a next brush stroke, the digital painting applicationautomatically fills brush tool 2230 (e.g., with a currently selectedpaint, or with additional paint having the same color or colordistribution that was stored in brush tool 2230 at the beginning or atthe end of the previous brush stroke, in different embodiments).

Note that the automatic brush filling operation described herein may insome embodiments be performed in response to the completion of a currentbrush stroke (e.g., in response to detecting a “mouse up” action at theend of a brush stroke). In other embodiments, the automatic brushfilling operation may be performed in response to initiation of a nextbrush stroke (e.g., in response to detecting a “mouse down” action atthe end of a brush stroke), e.g., so that the brush is re-filled withpaint immediately prior to applying the next brush stroke. Note alsothat when an automatic brush filling mode is enabled, it may beoverridden by the user by performing a manual brush cleaning operationto empty the brush following the execution of the automatic brushfilling operation.

FIG. 22B illustrates the application of a manual brush cleaningoperation prior to the application of an additional brush stroke on thedigital canvas displayed in work area 2250 of the user interfaceillustrated in FIG. 22A. In this example, the manual brush cleaningoperation is performed before the brush tool is automatically filled.For example, in some embodiments the automatic brush filling operationmay be performed in response to the completion of a brush stroke, andmay be repeated in response to completion of a manual brush cleaningoperation, when the application is in this state. In this way, the nextbrush stroke will be applied using a brush that stores only freshlyloaded paint. As described herein, in other embodiments a manual brushcleaning operation may be performed after an automatic brush cleaningoperation. As noted above, the dashed arrows represent the motion of abrush tool to invoke various functions of the digital paintingapplication. For example, in FIG. 22B, the dashed arrow indicates thatin order to invoke a manual brush cleaning operation, the user movedbrush tool 2230 to select the “clean” user interface element 2225 incontrols area 2210 (e.g., by clicking a cursor control button). Inresponse to this action by the user, the painting application cleanedbrush tool 2230.

FIG. 22C illustrates the application of an additional brush stroke onthe digital canvas displayed in work area 2250 of the user interfaceillustrated in FIG. 22A following performance of the manual brushcleaning operation and the automatic brush filling operation describedabove. In FIG. 22C, the dashed arrow indicates that in order to applythe additional brush stroke, the user moved brush tool 2230 from theselected user element of controls area 2210 to the digital canvasdisplayed in work area 2250 and then applied a brush stroke of thecurrently loaded paint to the canvas.

A common use case for real world painting tasks may be getting color anddetail down on the canvas as quickly as possible, e.g., using a seriesof clean, fresh brush strokes. Real painters may work in this modefrequently enough to develop techniques whereby they can clean andreload the paint brush between each pair of brush strokes without takingtheir eyes off the canvas, but novice painters can struggle with thismode. A digital painting application that includes an automatic brushcleaning mode and an automatic brush filling mode may be used tore-create this real world workflow in a manner that is easier toimplement than with real (physical) paint media and physical paintbrushes, and may alleviate the burden on new users of developing suchtechniques. For example, when both the automatic brush cleaning mode andthe automatic brush filling mode are on (enabled), at each stroke, thedigital brush may be effectively and automatically cleaned (which may beanalogous to a physical brush being dipped in turpentine or water), andthen may be automatically filled with a previously selected color on thepalette. This mode may provide a clean, fresh brush each stroke thatwill make consistent length marks with a consistent color every time,while still allowing the digital brush to get dirty and the paint on thedigital brush to blend with nearby colors during the stroke. FIGS. 23Athrough 23B illustrate the application of brush strokes in a naturalmedia painting simulation application in which both an automatic brushcleaning feature and an automatic brush filling feature are on(enabled), according to some embodiments.

FIG. 23A illustrates an example user interface of a digital paintingapplication that is similar to that illustrated in FIGS. 20A-20C anddescribed above. As in the previous examples, the user interfaceincludes user interface elements selectable to enable or disable anautomatic brush cleaning mode and an automatic brush filling mode.Again, two regions or areas of the user interface are illustrated ascontrols area 2310, and work area 2350. These areas are similar to theregions of the user interface illustrated in FIGS. 20A-20C, and mayinclude similar tools and/or functionality.

In the example illustrated in FIG. 23A, work area 2350 is the area inwhich all or a portion a digital canvas is displayed as various digitalpainting operations are performed. In the example illustrated in FIG.23A, work area 2350 illustrates a digital painting session in progress,in which a brush tool 2330 has been used to paint a brush stroke on adigital canvas. Note that in this example, both the automatic brushcleaning and the automatic brush filling mode are on (i.e. enabled).This is illustrated in FIGS. 23A-23B by the checked “auto clean” box andthe checked “auto fill” box in controls area 2310. Therefore, in thisexample, at some point after completing the application of the brushstroke illustrated in FIG. 23A and prior to the application of a nextbrush stroke, the digital painting application automatically cleansbrush tool 2330 and automatically fills brush tool 2330 (e.g., with acurrently selected paint, or with additional paint having the same coloror color distribution that was stored in brush tool 2330 at thebeginning or at the end of the previous brush stroke, in differentembodiments).

As noted above, the dashed arrow represents the motion of a brush toolto invoke various functions of the digital painting application. Forexample, in FIG. 23A, the dashed arrow indicates that in order to applya next brush stroke, the user moved brush tool 2330 to a new position onthe digital canvas displayed in work area 2350.

Note that the automatic brush cleaning and brush filling operationsdescribed herein may in some embodiments be performed in response to thecompletion of a current brush stroke (e.g., in response to detecting a“mouse up” action at the end of a brush stroke). In other embodiments,the automatic brush filling operation may be performed in response toinitiation of a next brush stroke (e.g., in response to detecting a“mouse down” action at the end of a brush stroke), e.g., so that thebrush is cleaned and then re-filled with paint immediately prior toapplying the next brush stroke. In this example, an automatic brushcleaning operation is performed first, and then the brush tool isautomatically filled. As described herein, in some embodiments a manualbrush cleaning operation may be performed after an automatic brushcleaning operation in order to override the automatic brush fillingoperation (e.g., if the user wishes to load a different paint onto thebrush before continuing with the currently selected automated options).

FIG. 23B illustrates the application of the next brush stroke on thedigital canvas displayed in work area 2350 of the user interfaceillustrated in FIG. 23A following performance of the automatic brushcleaning and brush filling operations described above.

A more detailed flow diagram illustrating one embodiment of a method forsimulating natural media brush strokes in a digital painting applicationusing different combinations of an automatic brush cleaning feature andan automatic brush filling feature is illustrated in FIG. 24. Asillustrated at 2400, the method may include a user enabling and/ordisabling an automatic brush cleaning option and/or an automatic brushfilling option of a digital painting application. In some embodiments,the current option settings may correspond to default settings, orsettings previously selected by the user or another user. In someembodiments one or more user interface elements, such as check boxes,menu options, etc., may be provided via which the user may set,override, or otherwise modify the current values of one or more of theoption settings to enable or disable one or both of the options. Asillustrated at 2405, the method may include the application receivinginput representing a brush stroke on a digital canvas.

As illustrated in this example, the actions taken in response to thisinput and the state of a brush model of the painting application may bedependent on the current settings of these options. For example, if boththe automatic brush cleaning option and the automatic brush fillingoption are off (i.e. disabled), shown as the positive exit from 2410,the method may include the application applying the brush stroke (as in2412) but may not include the application automatically cleaning orfilling the brush prior to applying any additional brush strokes. Asillustrated in this example, even if both the automatic brush cleaningoption and the automatic brush filling option are disabled, theapplication may allow the user to (optionally) clean and/or fill thebrush model manually prior to applying any additional brush strokes, asin 2414. For example, the user may manually select a user interfaceelement to invoke a “clean” function, and/or may manually select apalette or paint well user interface element to invoke a brush loadingoperation before beginning a next brush stroke, as desired.

As illustrated in FIG. 24, if the automatic brush cleaning option is on(i.e. enabled) and the automatic brush filling option are off (i.e.disabled), shown as the positive exit from 2420, the method may includethe application applying the brush stroke (as in 2422), andautomatically cleaning the brush (as in 2424) but may not include theapplication automatically filling the brush prior to applying anyadditional brush strokes. As illustrated in this example, even if theautomatic brush filling option is disabled, the application may allowthe user to (optionally) fill the brush model manually prior to applyingany additional brush strokes, as in 2426. For example, the user maymanually select a palette or paint well user interface element to invokea brush loading operation before beginning a next brush stroke, asdesired. In some such embodiments, the brush may be automaticallycleaned prior to the user (optionally) manually filling the brush. Inother embodiments, the brush may be automatically cleaned after the user(optionally) manually fills the brush.

As illustrated in FIG. 24, if the automatic brush cleaning option is off(i.e. disabled) and the automatic brush filling option is on (i.e.enabled), shown as the positive exit from 2430, the method may includethe application applying the brush stroke (as in 2432), andautomatically filling the brush prior to applying any additional brushstrokes (as in 2434), but may not include the application automaticallycleaning the brush. For example, the method may include the applicationautomatically filling the brush with a currently selected color afterthe brush stroke is completed, and before beginning the next stroke. Asillustrated in this example, even if the automatic brush cleaning optionis disabled, the application may allow the user to (optionally) cleanthe brush model manually prior to applying any additional brush strokes,as in 2436. For example, the user may manually select a user interfaceelement to invoke a “clean” function before beginning a next brushstroke, as desired. In some such embodiments, the brush may beautomatically filled prior to the user (optionally) manually cleaningthe brush. In other embodiments, the brush may be automatically filledafter the user (optionally) manually cleans the brush.

As illustrated in FIG. 24, if both the automatic brush cleaning optionand the automatic brush filling option are on (i.e. enabled), shown as2440 in FIG. 24, the method may include the application applying thebrush stroke (as in 2442), and then automatically cleaning and fillingthe brush prior to applying any additional brush strokes (as in 2444).In other words, the brush may be automatically cleaned and thenre-filled with a currently selected color after the brush stroke iscompleted, and before applying a next brush stroke.

As illustrated in FIG. 24, is there are more brush strokes to be appliedusing the current settings of the automatic brush cleaning option andthe automatic brush filling option, shown as the positive exit from2450, the method may include repeating the operations illustrated as2405-2450 for these additional strokes. In not, shown as the negativeexit from 2450, the current workflow may be completed (i.e. the user maybe finished working in this mode), as in 2460.

As noted above, the automatic brush cleaning and/or filling actionsdescribed herein may take place in response to the completion of a brushstroke (e.g., immediately following the completion of the stroke), inresponse to receiving input representing a next stroke (e.g.,immediately prior to applying the next stroke), or at any other timebetween brush strokes, in different embodiments. In addition, the usermay choose to override the default behavior of the application(according to the currently enabled automatic brush actions), bymanually cleaning and/or filling the brush between strokes. For example,if both automatic brush cleaning and automatic brush filling areenabled, the user may override the default behavior and clean, fill, orclean and fill the brush following the completion of the automated brushactions. Note also that in embodiments in which paint loaded on thebrush is modeled using a pickup buffer and a reservoir buffer, anautomatic brush cleaning operation may empty both the reservoir bufferand the pickup buffer, while an automatic brush filling operation mayfill only the reservoir buffer with paint.

FIG. 25 illustrates a painting simulation module that may implement oneor more of the natural media painting simulation techniques describedherein, according to some embodiments. Module 2520 may, for example, beimplemented as or in a stand-alone application, as a module of orplug-in for an application, or as a library function, in differentembodiments. Specific examples of applications in which variousembodiments of painting simulation module may be implemented include,but are not limited to, Adobe® Photoshop® and Adobe® After Effects®.“Adobe”, “Photoshop”, and “After Effects” are either registeredtrademarks or trademarks of Adobe Systems Incorporated in the UnitedStates and/or other countries.

Module 2520 may, for example, implement one or more of a pickup andreservoir model for simulation of real paint deposition between a brushand a canvas, drying rate, canvas wetness, and/or pickup mix ratiosettings for applying various painting effects using digital brushes,non-uniform loading of digital brushes, and automatic brush cleaningand/or brush filling modes for common natural media painting workflows,as described herein. In some embodiments, module 2520 may implement oneor more other painting simulation methods or tools, or other digitalimage processing methods or tools. As illustrated in FIG. 25, module2520 may receive as input one or more digital images 2510. For example,an input image 2510 that was previously created may be retrieved frommemory for additional editing using any or all of the digital paintingtechniques described herein. In other cases, module 2520 may be used tocreate a new digital image using any or all of the digital paintingtechniques described herein. Module 2520 may receive user input 2512according to one or more of the virtual painting methods describedherein. In various embodiments, module 2520 may be used to edit theinput image(s) 2510, according to user input 2512 received via userinterface 2522, using one or more of the virtual painting methodsdescribed herein. For example, a user may enter input according to oneor more of the virtual painting methods described herein to edit animage, and/or may activate other tools in order to further edit theimage. In various embodiments, module 2520 may generate as output one ormore modified images 2530. Output image(s) 2530 may, for example, bestored to a storage medium 2540, such as system memory, a disk drive,DVD, CD, etc.

As illustrated in FIG. 25, in some embodiments module 2520 may provide auser interface 2522 via which a user may interact with the module 2520,e.g., to perform one or more virtual painting operations, as describedherein. For example, in some embodiments, the user interface may provideuser interface elements whereby the user may set or select options, orset or modify the values of various parameters including, but notlimited to, one or more of the drying rate, canvas wetness, and/orpickup mix ratio settings, and the automatic brush cleaning and fillingmodes as described herein. In some embodiments, the user interface mayprovide user interface elements whereby the user may load the brush withnon-uniform paint from the canvas in various modes, as described herein.

Some embodiments may include a means for simulating brush strokes usinga small set of physically meaningful parameters. For example, a paintingsimulation module may receive input indicating values of a drying rateparameter, a canvas wetness parameter and/or a pickup mix ratio, and mayuse these values to control the appearance of brush strokes made on adigital canvas by a virtual brush, as described herein. The paintingsimulation module may in some embodiments be implemented by anon-transitory, computer-readable storage medium and one or moreprocessors (e.g., CPUs and/or GPUs) of a computing apparatus. Thecomputer-readable storage medium may store program instructionsexecutable by the one or more processors to cause the computingapparatus to perform receiving input indicating values of a drying rateparameter, a canvas wetness parameter and/or a pickup mix ratio, andusing these values to control the appearance of brush strokes made on adigital canvas by a virtual brush, as described herein. Otherembodiments of the painting simulation module may be at least partiallyimplemented by hardware circuitry and/or firmware stored, for example,in a non-volatile memory.

Some embodiments may include a means for modeling paint loading on avirtual brush using a pickup buffer and a reservoir buffer. For example,a paint load modeling module may model the paint stored in the belly ofa virtual brush in a reservoir buffer, and may model the paint picked upand stored by the virtual brush during one or more brush strokes in apickup buffer, such that each unit area of the virtual brush tipcorresponds to one cell of the reservoir buffer and one cell of thepickup buffer, as described herein. The paint load modeling module mayin some embodiments be implemented by a non-transitory,computer-readable storage medium and one or more processors (e.g., CPUsand/or GPUs) of a computing apparatus. The computer-readable storagemedium may store program instructions executable by the one or moreprocessors to cause the computing apparatus to perform modeling thepaint stored in the belly of a virtual brush in a reservoir buffer, andmodeling the paint picked up and stored by the virtual brush during oneor more brush strokes in a pickup buffer, such that each unit area ofthe virtual brush tip corresponds to one cell of the reservoir bufferand one cell of the pickup buffer, as described herein. Otherembodiments of the paint load modeling module may be at least partiallyimplemented by hardware circuitry and/or firmware stored, for example,in a non-volatile memory.

Some embodiments may include a means for simulating paint deposition ona digital canvas using a virtual brush model that includes a pickupbuffer and a reservoir buffer. For example, a paint depositionsimulation module may receive input representing a brush stroke, mayapply paint directly from at least one of a pickup buffer and areservoir buffer of a brush model to digital canvas pixels affected bythe brush stroke, and may store data representing the modified canvaspixels, as described herein. The paint deposition simulation module mayin some embodiments be implemented by a non-transitory,computer-readable storage medium and one or more processors (e.g., CPUsand/or GPUs) of a computing apparatus. The computer-readable storagemedium may store program instructions executable by the one or moreprocessors to cause the computing apparatus to perform receiving inputrepresenting a brush stroke, applying paint directly from at least oneof a pickup buffer and a reservoir buffer of a brush model to digitalcanvas pixels affected by the brush stroke, and storing datarepresenting the modified canvas pixels, as described herein. Otherembodiments of the paint deposition simulation module may be at leastpartially implemented by hardware circuitry and/or firmware stored, forexample, in a non-volatile memory.

Some embodiments may include a means for loading a non-uniformdistribution of paint on a virtual brush. For example, a non-uniformpaint loading module may receive input identifying a portion of adigital canvas on which a non-uniform distribution paint has beendeposited, and may load a virtual brush model with a distribution ofpaint corresponding to the non-uniform distribution of paint in theidentified portion of the canvas for subsequent deposition using thevirtual brush, as described herein. The non-uniform paint loading modulemay in some embodiments be implemented by a non-transitory,computer-readable storage medium and one or more processors (e.g., CPUsand/or GPUs) of a computing apparatus. The computer-readable storagemedium may store program instructions executable by the one or moreprocessors to cause the computing apparatus to perform receiving inputidentifying a portion of a digital canvas on which a non-uniformdistribution paint has been deposited, and loading a virtual brush modelwith a distribution of paint corresponding to the non-uniformdistribution of paint in the identified portion of the canvas forsubsequent deposition using the virtual brush, as described herein.Other embodiments of the non-uniform paint loading module may be atleast partially implemented by hardware circuitry and/or firmwarestored, for example, in a non-volatile memory.

Some embodiments may include a means for automatically cleaning avirtual paint brush. For example, an automatic brush cleaning modulemay, when an automatic brush cleaning feature is selectively enabled,automatically empty a reservoir buffer and/or a pickup buffer of avirtual brush model between brush strokes made with the virtual brush,as described herein. The automatic brush cleaning module may in someembodiments be implemented by a non-transitory, computer-readablestorage medium and one or more processors (e.g., CPUs and/or GPUs) of acomputing apparatus. The computer-readable storage medium may storeprogram instructions executable by the one or more processors to causethe computing apparatus to perform, when an automatic brush cleaningfeature is selectively enabled, automatically emptying a reservoirbuffer and/or a pickup buffer of a virtual brush model between brushstrokes made with the virtual brush, as described herein. Otherembodiments of the automatic brush cleaning module may be at leastpartially implemented by hardware circuitry and/or firmware stored, forexample, in a non-volatile memory.

Some embodiments may include a means for automatically filling a virtualpaint brush. For example, an automatic brush filling module may, when anautomatic brush filling feature is selectively enabled, automaticallyfill a reservoir buffer of a virtual brush model with a currently selectpaint or paint distribution between brush strokes made with the virtualbrush, as described herein. The automatic brush filling module may insome embodiments be implemented by a non-transitory, computer-readablestorage medium and one or more processors (e.g., CPUs and/or GPUs) of acomputing apparatus. The computer-readable storage medium may storeprogram instructions executable by the one or more processors to causethe computing apparatus to perform, when an automatic brush fillingfeature is selectively enabled, automatically filling a reservoir bufferof a virtual brush model with a currently select paint or paintdistribution between brush strokes made with the virtual brush, asdescribed herein. Other embodiments of the automatic brush fillingmodule may be at least partially implemented by hardware circuitryand/or firmware stored, for example, in a non-volatile memory.

Some embodiments of the painting simulation applications and modules(such as painting simulation module 2520), and/or of the variouspainting simulation methods described herein may be executed on one ormore computer systems, which may interact with various other devices.One such computer system is illustrated in FIG. 26. FIG. 26 illustratesone embodiment of a computer system 2600 that is configured to implementone or more of the painting simulation methods described herein,according to some embodiments. In different embodiments, computer system2600 may be any of various types of devices, including, but not limitedto, a personal computer system, desktop computer, laptop, notebook, ornetbook computer, mainframe computer system, handheld computer,workstation, network computer, a camera, a set top box, a mobile device,a consumer device, video game console, handheld video game device,application server, storage device, a peripheral device such as aswitch, modem, router, or in general any type of computing or electronicdevice.

In the illustrated embodiment, computer system 2600 includes one or moreprocessors 2610 coupled to a system memory 2620 via an input/output(I/O) interface 2630. Computer system 2600 further includes a networkinterface 2640 coupled to I/O interface 2630, and one or moreinput/output devices 2650, such as cursor control device 2660 (e.g.,mouse, trackball, touchpad, digital tablet and stylus, etc.), keyboard2670, and display(s) 2680. In some embodiments, it is contemplated thatembodiments may be implemented using a single instance of computersystem 2600, while in other embodiments multiple such systems, ormultiple nodes making up computer system 2600, may be configured to hostdifferent portions or instances of embodiments. For example, in oneembodiment some elements may be implemented via one or more nodes ofcomputer system 2600 that are distinct from those nodes implementingother elements.

In various embodiments, computer system 2600 may be a uniprocessorsystem including one processor 2610, or a multiprocessor systemincluding several processors 2610 (e.g., two, four, eight, or anothersuitable number). Processors 2610 may be any suitable processor capableof executing instructions. For example, in various embodiments,processors 2610 may be general-purpose or embedded processorsimplementing any of a variety of instruction set architectures (ISAs),such as the x86, PowerPC, SPARC, or MIPS ISAs, or any other suitableISA. In multiprocessor systems, each of processors 2610 may commonly,but not necessarily, implement the same ISA.

In some embodiments, at least one processor 2610 may be a graphicsprocessing unit. A graphics processing unit or GPU may be considered adedicated graphics-rendering device for a personal computer,workstation, game console or other computing or electronic device.Modern GPUs may be very efficient at manipulating and displayingcomputer graphics, and their highly parallel structure may make themmore effective than typical CPUs for a range of complex graphicalalgorithms. For example, a graphics processor may implement a number ofgraphics primitive operations in a way that makes executing them muchfaster than drawing directly to the screen with a host centralprocessing unit (CPU). In various embodiments, the image processingmethods disclosed herein may, at least in part, be implemented byprogram instructions configured for execution on one of, or parallelexecution on two or more of, such GPUs. The GPU(s) may implement one ormore application programmer interfaces (APIs) that permit programmers toinvoke the functionality of the GPU(s). Suitable GPUs may becommercially available from vendors such as NVIDIA Corporation, ATITechnologies (AMD), and others.

System memory 2620 may be configured to store program instructionsand/or data accessible by processor 2610. In various embodiments, systemmemory 2620 may be implemented using any suitable memory technology,such as static random access memory (SRAM), synchronous dynamic RAM(SDRAM), nonvolatile/Flash-type memory, or any other type of memory. Inthe illustrated embodiment, program instructions and data implementingdesired functions, such as those described above for embodiments of apainting simulation module are shown stored within system memory 2620 asprogram instructions 2625 and data storage 2635, respectively. In otherembodiments, program instructions and/or data may be received, sent orstored upon different types of computer-accessible (e.g., computerreadable) media or on similar media separate from system memory 2620 orcomputer system 2600. Generally speaking, a computer-accessible mediummay include non-transitory storage media or memory media such asmagnetic or optical media, e.g., disk or CD/DVD-ROM coupled to computersystem 2600 via I/O interface 2630. Program instructions and data storedon a non-transitory computer-accessible storage medium may betransmitted by transmission media or signals such as electrical,electromagnetic, or digital signals, which may be conveyed via acommunication medium such as a network and/or a wireless link, such asmay be implemented via network interface 2640.

In one embodiment, I/O interface 2630 may be configured to coordinateI/O traffic between processor 2610, system memory 2620, and anyperipheral devices in the device, including network interface 2640 orother peripheral interfaces, such as input/output devices 2650. In someembodiments, I/O interface 2630 may perform any necessary protocol,timing or other data transformations to convert data signals from onecomponent (e.g., system memory 2620) into a format suitable for use byanother component (e.g., processor 2610). In some embodiments, I/Ointerface 2630 may include support for devices attached through varioustypes of peripheral buses, such as a variant of the Peripheral ComponentInterconnect (PCI) bus standard or the Universal Serial Bus (USB)standard, for example. In some embodiments, the function of I/Ointerface 2630 may be split into two or more separate components, suchas a north bridge and a south bridge, for example. In addition, in someembodiments some or all of the functionality of I/O interface 2630, suchas an interface to system memory 2620, may be incorporated directly intoprocessor 2610.

Network interface 2640 may be configured to allow data to be exchangedbetween computer system 2600 and other devices attached to a network,such as other computer systems, or between nodes of computer system2600. In various embodiments, network interface 2640 may supportcommunication via wired or wireless general data networks, such as anysuitable type of Ethernet network, for example; viatelecommunications/telephony networks such as analog voice networks ordigital fiber communications networks; via storage area networks such asFibre Channel SANs, or via any other suitable type of network and/orprotocol.

Input/output devices 2650 may, in some embodiments, include one or moredisplay terminals, keyboards, keypads, touchpads, scanning devices,voice or optical recognition devices, or any other devices suitable forentering or retrieving data by one or more computer system 2600.Multiple input/output devices 2650 may be present in computer system2600 or may be distributed on various nodes of computer system 2600. Insome embodiments, similar input/output devices may be separate fromcomputer system 2600 and may interact with one or more nodes of computersystem 2600 through a wired or wireless connection, such as over networkinterface 2640.

As shown in FIG. 26, memory 2620 may include program instructions 2625,configured to implement embodiments of a painting simulation module asdescribed herein, and data storage 2635, comprising various dataaccessible by program instructions 2625. In one embodiment, programinstructions 2625 may include software elements of embodiments of apainting simulation module or one or more painting simulation methods asillustrated in the above figures. For example, program instructions 2625may include program instructions executable to implement one or more ofa painting simulation module, a paint load modeling module, a paintdeposition simulation module, a non-uniform paint loading module, anautomatic brush cleaning module, or an automatic brush filling module,some of which may be sub-modules of one of the others, or a sub-moduleof another module or application. Data storage 2635 may include datathat may be used in embodiments. For example, data storage 2635 mayinclude one or more data structures storing data representing paintstored in a pickup buffer and/or reservoir buffer of a virtual brush,data representing paint stored in a digital canvas, data representingthe values of one or more default, pre-set, or configurable parametersor option settings, and/or data representing input, intermediate, oroutput images accessible by various applications executing in thesystem. In other embodiments, other or different software elements anddata may be included in memory 2620.

Those skilled in the art will appreciate that computer system 2600 ismerely illustrative and is not intended to limit the scope of a paintingsimulation module as described herein. In particular, the computersystem and devices may include any combination of hardware or softwarethat can perform the indicated functions, including a computer, personalcomputer system, desktop computer, laptop, notebook, or netbookcomputer, mainframe computer system, handheld computer, workstation,network computer, a camera, a set top box, a mobile device, networkdevice, internet appliance, PDA, wireless phones, pagers, a consumerdevice, video game console, handheld video game device, applicationserver, storage device, a peripheral device such as a switch, modem,router, or in general any type of computing or electronic device.Computer system 2600 may also be connected to other devices that are notillustrated, or instead may operate as a stand-alone system. Inaddition, the functionality provided by the illustrated components mayin some embodiments be combined in fewer components or distributed inadditional components. Similarly, in some embodiments, the functionalityof some of the illustrated components may not be provided and/or otheradditional functionality may be available.

Those skilled in the art will also appreciate that, while various itemsare illustrated as being stored in memory or on storage while beingused, these items or portions of them may be transferred between memoryand other storage devices for purposes of memory management and dataintegrity. Alternatively, in other embodiments some or all of thesoftware components may execute in memory on another device andcommunicate with the illustrated computer system via inter-computercommunication. Some or all of the system components or data structuresmay also be stored (e.g., as instructions or structured data) on acomputer-accessible medium or a portable article to be read by anappropriate drive, various examples of which are described above. Insome embodiments, instructions stored on a computer-accessible mediumseparate from computer system 2600 may be transmitted to computer system2600 via transmission media or signals such as electrical,electromagnetic, or digital signals, conveyed via a communication mediumsuch as a network and/or a wireless link. Various embodiments mayfurther include receiving, sending or storing instructions and/or dataimplemented in accordance with the foregoing description upon acomputer-accessible medium. Accordingly, the systems and methodsdescribed herein may be implemented using other computer systemconfigurations.

Note that various embodiments of the systems and methods describedherein may further include receiving, sending or storing instructionsand/or data implemented in accordance with the foregoing descriptionupon a computer-accessible medium. Generally speaking, acomputer-accessible medium may include non-transitory storage media ormemory media such as magnetic or optical media, e.g., disk orDVD/CD-ROM, volatile or non-volatile media such as RAM (e.g. SDRAM, DDR,RDRAM, SRAM, etc.), ROM, etc. In some embodiments, a computer-accessiblemedium may also include transmission media or signals such aselectrical, electromagnetic, or digital signals, conveyed via acommunication medium such as network and/or a wireless link.

The various methods as illustrated in the figures and described hereinrepresent example embodiments of these methods. These methods may beimplemented in software, hardware, or a combination thereof, indifferent embodiments. The order of method may be changed, and variouselements may be added, reordered, combined, omitted, modified, etc.

Various modifications and changes may be made as would be obvious to aperson skilled in the art having the benefit of this disclosure. It isintended that the disclosure embrace all such modifications and changesand, accordingly, the above description to be regarded in anillustrative rather than a restrictive sense.

What is claimed is:
 1. A computer-implemented method, comprising:receiving input defining a brush stroke made by a virtual brush in adigital painting application, the virtual brush being modeled using abrush model that comprises a reservoir buffer and a pickup buffer;obtaining values for one or more of a drying rate parameter, a canvaswetness parameter, or a pickup mix ratio, the value of the drying rateparameter reflects a rate at which virtual paint dries on the virtualbrush and affects a length of one or more brush strokes applied to adigital canvas using the virtual brush, the value of the canvas wetnessparameter affects an amount of virtual paint picked up from a digitalcanvas by the virtual brush during one or more brush strokes, and thevalue of the pickup mix ratio affects whether virtual paint picked upfrom a digital canvas by the virtual brush during a brush stroke ismixed with other virtual paint on the virtual brush when beingre-deposited on the digital canvas during the brush stroke; applying thebrush stroke to concurrently deposit virtual paint from both thereservoir buffer and the pickup buffer of the virtual brush, independentof each other, to an image on a digital canvas such that at least someof the virtual paint from the reservoir buffer that is depositedconcurrently with the virtual paint from the pickup buffer is depositedto the image without loading the at least some virtual paint from thereservoir buffer into the pickup buffer, effects of the brush stroke onthe image are dependent on the one or more obtained values; and storingdata representing the image as modified by the brush stroke.
 2. Thecomputer-implemented method of claim 1, wherein the value of the pickupmix ratio indicates an amount of other paint on the virtual brush to bemixed with virtual paint picked up from the digital canvas when thevirtual paint picked up from the digital canvas is re-deposited on thedigital canvas during the brush stroke.
 3. The computer-implementedmethod of claim 2, wherein: the reservoir buffer is configured to storedata representing paint stored in a belly of a paintbrush and the pickupbuffer is configured to store data representing paint that has beenpicked up by the paintbrush during one or more brush strokes; and morevirtual paint from the reservoir buffer is mixed with the virtual paintpicked up from the digital canvas when the pickup mix ratio value ishigh than when the pickup mix ratio value is low.
 4. Thecomputer-implemented method of claim 1, wherein a shorter brush strokeis produced when the drying rate value is high than when the drying ratevalue is low.
 5. The computer-implemented method of claim 1, whereinmore virtual paint is picked up from a digital canvas by the virtualbrush during the brush stroke when the canvas wetness value is high thanwhen the canvas wetness value is low.
 6. The computer-implemented methodof claim 1, wherein one or more of the obtained values is a defaultvalue for a given paint type.
 7. The computer-implemented method ofclaim 1, wherein the value of one or more of the drying rate parameter,the canvas wetness parameter, or the pickup mix ratio is configurable bya user.
 8. The computer-implemented method of claim 1, wherein: thebrush model comprises a bristle brush model; and for two or morebristles of the bristle brush model, the values of one or more of thedrying rate parameter, the canvas wetness parameter, or the pickup mixratio are different.
 9. A system, comprising: one or more processors;and a memory coupled to the one or more processors, the memory storesprogram instructions that when executed by the one or more processorsare configured to cause the one or more processors to: receive inputdefining a brush stroke made by a virtual brush in a digital paintingapplication, the virtual brush being modeled using a brush model thatcomprises a reservoir buffer and a pickup buffer; obtain values for oneor more of a drying rate parameter, a canvas wetness parameter, or apickup mix ratio, the value of the drying rate parameter affects alength of one or more brush strokes applied to a digital canvas usingthe virtual brush, the value of the canvas wetness parameter affects anamount of virtual paint picked up from a digital canvas by the virtualbrush during one or more brush strokes, and the value of the pickup mixratio affects whether virtual paint picked up from a digital canvas bythe virtual brush during a brush stroke is mixed with other virtualpaint on the virtual brush when being re-deposited on the digital canvasduring the brush stroke; apply the brush stroke to concurrently depositvirtual paint from both the reservoir buffer and the pickup buffer ofthe virtual brush, independent of each other, to an image on a digitalcanvas such that at least some of the virtual paint from the reservoirbuffer that is deposited concurrently with the virtual paint from thepickup buffer is deposited to the image without loading the at leastsome virtual paint from the reservoir buffer into the pickup buffer,effects of the brush stroke on the image are dependent on the one ormore obtained values; and store data representing the image as modifiedby the brush stroke.
 10. The system of claim 9, wherein the value of thepickup mix ratio indicates an amount of other paint on the virtual brushto be mixed with virtual paint picked up from the digital canvas whenthe virtual paint picked up from the digital canvas is re-deposited onthe digital canvas during the brush stroke.
 11. The system of claim 10,wherein: the reservoir buffer stores data representing paint stored in abelly of a paintbrush and the pickup buffer stores data representingpaint that has been picked up by the paintbrush during one or more brushstrokes; and more virtual paint from the reservoir buffer is mixed withthe virtual paint picked up from the digital canvas when the pickup mixratio value is high than when the pickup mix ratio value is low.
 12. Thesystem of claim 9, wherein a shorter brush stroke is produced when thedrying rate value is high than when the drying rate value is low. 13.The system of claim 9, wherein more virtual paint is picked up from adigital canvas by the virtual brush during the brush stroke when thecanvas wetness value is high than when the canvas wetness value is low.14. The system of claim 9, wherein the value of one or more of thedrying rate parameter, the canvas wetness parameter, or the pickup mixratio is configurable by a user.
 15. A computer-readable storage devicestoring program instructions that when executed on one or more computersare configured to cause the one or more computers to: receive inputdefining a brush stroke made by a virtual brush in a digital paintingapplication, the virtual brush being modeled using a brush model thatcomprises a reservoir buffer and a pickup buffer; obtain values for oneor more of a drying rate parameter, a canvas wetness parameter, or apickup mix ratio, the value of the drying rate parameter reflects a rateat which virtual paint dries on the virtual brush and affects a lengthof one or more brush strokes applied to a digital canvas using thevirtual brush, the value of the canvas wetness parameter affects anamount of virtual paint picked up from a digital canvas by the virtualbrush during one or more brush strokes, and the value of the pickup mixratio affects whether virtual paint picked up from a digital canvas bythe virtual brush during a brush stroke is mixed with other virtualpaint on the virtual brush when being re-deposited on the digital canvasduring the brush stroke; apply the brush stroke to concurrently depositvirtual paint from both the reservoir buffer and the pickup buffer ofthe virtual brush, independent of each other, to an image on a digitalcanvas such that at least some of the virtual paint from the reservoirbuffer that is deposited concurrently with the virtual paint from thepickup buffer is deposited to the image without loading the at leastsome virtual paint from the reservoir buffer into the pickup buffer,effects of the brush stroke on the image are dependent on the one ormore obtained values; and store data representing the image as modifiedby the brush stroke.
 16. The storage device of claim 15, wherein: thevalue of the pickup mix ratio indicates an amount of other paint on thevirtual brush to be mixed with virtual paint picked up from the digitalcanvas when the virtual paint picked up from the digital canvas isre-deposited on the digital canvas during the brush stroke; thereservoir buffer is configured to store data representing paint storedin a belly of a paintbrush and the pickup buffer is configured to storedata representing paint that has been picked up by the paintbrush duringone or more brush strokes; and more virtual paint from the reservoirbuffer is mixed with the virtual paint picked up from the digital canvaswhen the pickup mix ratio value is high than when the pickup mix ratiovalue is low.
 17. The storage device of claim 15, wherein a shorterbrush stroke is produced when the drying rate value is high than whenthe drying rate value is low.
 18. The storage device of claim 15,wherein more virtual paint is picked up from a digital canvas by thevirtual brush during the brush stroke when the canvas wetness value ishigh than when the canvas wetness value is low.
 19. The storage deviceof claim 15, wherein the value of one or more of the drying rateparameter, the canvas wetness parameter, or the pickup mix ratio isconfigurable by a user.